Entity Framework 4 and WCF Data Services 4

Slides:



Advertisements
Similar presentations
Satisfy Your Technical Curiosity ADO.NET vNext The Entity Data Model, Object Services, and LINQ Bob Beauchemin Director of Developer Resources, SQLskills.
Advertisements

What Is Microsoft Marketplace DataMarket What Is Microsoft Marketplace DataMarket? Michael Stiefel
Dhananjay Kumar
OASIS OData Technical Committee. AGENDA Introduction OASIS OData Technical Committee OData Overview Work of the Technical Committee Q&A.
.NET 3.5 SP1 New features Enhancements Visual Studio 2008 SP1 New features Enhancements Additional features/enhancements.
Change the Rules Distributed data apps with.NET Zlatko Knezevic Developer Evangelist Microsoft
ADVANTAGE WEBAPI PETER FUNK SOFTWARE ENGINEER, ADVANTAGE R&D MAY 20, 2011.
OData Data Sources Clients Web Browsers (Internet Explorer, Firefox, …) Web Browsers (Internet Explorer, Firefox, …) Mobile Phones (Android,
.NET Framework V3.5+ & RESTful web services Mike Taulty Developer & Platform Group Microsoft Ltd
© Copyright SELA Software & Education Labs Ltd Baruch Hirsch St. Bnei Brak Israel Microsoft Entity Framework v1.1 over Oracle Database Erez.
05 | Data Access with Entity Framework Bruno Terkaly | Technical Evangelist Bret Stateham | Technical Evangelist.
Jon Flanders INT303. About Me  Jon Flanders –  Independent consultant/trainer  BizTalk MVP.
Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.
Introduction to ADO Entity Framework ir Denis VOITURON Source:
Eric Nelson Developer & Platform Group Microsoft Ltd
Building Offline/Cache Mode Web Apps Using Sync Framework Mike Clark Group Manager Cloud Data Services Team
.NET Database Technologies: Entity Framework additional notes – part 2.
Entity Framework, a quickstart Florin−Tudor Cristea, Microsoft Student Partner.
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
GRITS Working with AVM Data Astronomy Visualization Metadata June 11th, 2010 Casey Rosenthal
REST.  REST is an acronym standing for Representational State Transfer  A software architecture style for building scalable web services  Typically,
ASP.NET + jQuery + Odata = Goodness Stephen Walther Superexpert.com
Microsoft Visual Studio 2010 Muhammad Zubair MS (FAST-NU) Experience: 5+ Years Contact:- Cell#:
ADO.NET DATA SERVICES Mike Taulty Developer & Platform Group Microsoft UK
Microsoft Visual Studio 2010 Muhammad Zubair MS (FAST-NU) Experience: 5+ Years Contact:- Cell#:
Entity Framework Overview. Entity Framework A set of technologies in ADO.NET that support the development of data-oriented software applications A component.
Open Data Protocol * Han Wang 11/30/2012 *
Project “Astoria” first announced in Mix 2007 Shared early prototypes, got tons of feedback Now we’re talking about the real deal Production quality bits,
 Mike Flasko Program Manager Microsoft Corporation TL07.
OData: There’s a Feed for That Pablo Castro Software Architect Microsoft Corporation
Lap Around Visual Studio 2008 &.NET 3.5 Enhancements.
Project Agenda Project Introduction Project Project Online / Project Server Customizations and Extensibility.
REpresentational State Transfer.  Resources  Representations  Verbs  Links  Headers  HTTP Status Codes.
1 ADO.NET Data Services Mike Taulty Developer & Platform Group Microsoft Ltd
Web Technologies Lecture 10 Web services. From W3C – A software system designed to support interoperable machine-to-machine interaction over a network.
Shyam Pather Development Manager Microsoft Session Code: DTL208.
ADO.NET 3.0 – Entity Data Model Gert E.R. Drapers Chief Software Architect Visual Studio Team Edition for Database Professionals Microsoft Corporation.
ODATA DESIGN PRINCIPLES July 26, BUILD ON HTTP, REST OData is a RESTful HTTP Protocol Build on HTTP Entities modeled as Resources Relationships.
Data Access Methodologies: When to choose what (ADO.NET, Entity Framework, WCF Data Services) Wriju Ghosh Lead Partner Consultant, Microsoft.
Exploring Networked Data and Data Stores Lesson 3.
© 2010 IBM Corporation RESTFul Service Modelling in Rational Software Architect April, 2011.
INTRODUCING HYBRID APP KAU with MICT PARK IT COMPANIES Supported by KOICA
Working in a Mobile App Development Environment Lesson 2.
2 ADO.NET Data Services for the Web Mike Flasko Program Manager, Microsoft “Project Astoria”
DAT303 - Entity Framework: Application Patterns Pablo Castro Technical Lead, Microsoft Corporation.
Introducing the Microsoft® .NET Framework
Building and Consuming REST-based Data Services for the Web
Components.
The Client-Server Model
WEB SERVICES.
REST: Web Services Abel Sanchez.
Entity Framework By: Casey Griffin.
ASP.NET 3.5 Mike Ormond Developer & Platform Group Microsoft Ltd
IBM Data Server Gateway for OData
ADO.NET Entity Framework Marcus Tillett
ADO.NET Entity Framework
ADO.NEXT Advances in Data Access for 2008
WEB API.
An Introduction to Entity Framework
Accessing Data in a .NET Web Application
WCF Data Services Getting Started Guide
Visual Studio 2008 Mike Taulty Developer & Platform Group
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
Pablo Castro Software Architect Microsoft Corporation
04 | Apps and SharePoint Chris Johnson | SharePoint Guru
Web APIs In computer programming, an application programming interface (API) is a set of subroutine definitions, protocols, and tools for building application.
ADO.NET Entity Framework
WCF Data Services and Silverlight
Visual Studio 2010 and .NET Framework 4 Training Workshop
.NET Framework V3.5+ & RESTful web services
Presentation transcript:

Entity Framework 4 and WCF Data Services 4 Max Weber - Senior Consultant

Get started with Entity Framework 4 Presentation Goals Get started with Entity Framework 4 Get started with WCF Data Services 4 Create website iBlog Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Entity Data Model Entity Framework 4 WCF Data Services 4 Presentation Agenda Entity Data Model Entity Framework 4 Open up Visual Studio WCF Data Services 4 Summary / Questions Cake Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

What is the Entity Data Model? The Entity Data Model (EDM) is a set of concepts that describe the structure of data, regardless of its stored form. The EDM borrows from the Entity-Relationship Model described by Peter Chen in 1976, but it also builds on the Entity-Relationship Model and extends its traditional uses. Extensions to E-R Model: Separation of the entities and relationships from their storage medium http://msdn.microsoft.com/en-us/library/ee382825.aspx Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Entity Data Model Key Concepts Entity Type entity key, inheritance, entity Sets, entity container Association Type foreign key, multiplicity, navigation properties, association set, entity container Property Boolean, Int32, String DateTime, Guid, Binary Complex Types Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Entity Framework Overview

Entity Framework Overview Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Conceptual Model Storage Model Data Providers Entity Framework 4 Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Conceptual Model – Entity Framework 4 Conceptual schema definition language (CSDL) Conceptual model == Domain model .csdl file extension CSDL is Entity Framework’s implementation of the Entity Data Model Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Storage Model – Entity Framework 4 Store schema definition language (SSDL) Storage model == Logical model Storage models are provider-specific .ssdl file extension Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Mapping Concepts to Storage – EF4 Mapping specification language (MSL) Maps between conceptual and storage models .msl file extension Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Providers – Entity Framework 4 EF uses the ADO.NET Data Provider model Providers MS SQL Server Indirect access to other DBs using ODBC, OLEDB VistaDB Devart OpenLink Software Synergy …5+ more ADO.NET Data Providers List http://msdn.microsoft.com/en-us/data/dd363565.aspx Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Entity Data Model Tools Entity Data Model Wizard ADO.NET Entity Data Model Designer Update Model Wizard Command line tool EDM Generator (EdmGen.exe) Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Class Generation – Entity Framework T4 Templates used to generate Entity classes from CSDL Entities based on EntitySet Tied to .NET, System.Data Plain Old CLR Objects (POCO) Need POCO extension from Visual Studio Gallery POCO Proxy Extensions from Visual Studio Gallery ADO.NET POCO Entity Generator Tangible T4 Editor Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Code Time! – Entity Framework 4 Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Entity Framework: Recap Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Formerly .NET Data Services (aka Astoria) Description: WCF Data Services Formerly .NET Data Services (aka Astoria) Description: WCF Data Services enables creation and consumption of data services for the Web or an intranet by using the Open Data Protocol (OData).

Architecture Overview : WCF Data Services

RESTful work – WCF Data Services Exposes data as resources (URI) http://localhost/Northwind.svc/Customers(‘ALFKI’) http://localhost/Northwind.svc/Customers('ALFKI')/Orders ?$filter=Freight gt 50 Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Open Data Protocol (OData) Definition OData enables you to expose your data as resources that are addressable by URIs Enables you to access and change data by using the semantics of representational state transfer (REST) Standard HTTP verbs supported: GET, PUT, POST, DELETE. Reference: WCF Data Services Overview - http://msdn.microsoft.com/library/cc668794.aspx

Output Formats – WCF Data Services Atom JSON XML Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Freedom of data source – WCF Data Services Entity Framework Provider Uses Entity Data Models to structure access Reflection Provider Exposes data structures with interface IQueryable Create/Update/Delete with interface IUpdatable Custom Provider Roll your own Link to WCF Data Services Providers http://msdn.microsoft.com/en-us/library/dd672591.aspx Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Custom Business Logic – WCF Data Services Service Operators Act at a service level Interceptors Act at an entity set level Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Client Libraries – WCF Data Services WCF Data Services Client Library .NET Framework Silverlight OData SDK Javascript (AJAX) PHP Java Ruby Windows Phone 7 (not yet released) Objective-C (iPhone) (not yet released) Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Code Time! – WCF Data Services Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

WCF Data Services Atom feeds in IE OOTB IE Experience with WCF DS Atom feeds bad Make this change to see Atom feeds properly: Tools-> Internet Options -> Feeds and Web Slices (Settings) Uncheck “Turn on feed reading view” Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Recap: WCF Data Services

Entity Data Model Entity Framework 4 WCF Data Services 4 In Summary Entity Data Model Entity Framework 4 Conceptual Model Storage Model Class generation using T4 Templates WCF Data Services 4 OData v2 RESTful services Multiple Data Providers Multiple Output formats Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018

Distribution of slide deck This slide deck will be made available from the following locations: Tallan blogs - blogs.tallan.com CTDOTNET – www.ctdotnet.org

Resources and Questions? Then Cake Visual Studio Gallery Visual Studio - Entity Framework 4.0 and WCF Data Services 4.0 in Visual Studio 2010 What's New and Cool in Entity Framework 4.0 – DevelopMentor ADO.NET Entity Framework Entity Framework At-a-Glance WCF Data Services WCF Data Services Overview WCF (ADO.NET) Data Services At-a-Glance Data Development Videos Programming Entity Framework Don't Be Iffy (Julie Lerman)

It’s time for cake! Tallan, Inc. Proprietary and Confidential. Copyright 2010. 9/19/2018