Académique Documents
Professionnel Documents
Culture Documents
www.tallan.com
Presentation Goals
Get
started with Entity Framework 4 Get started with WCF Data Services 4 Create website iBlog
12/4/2012
Presentation Agenda
Entity
WCF
Open
Summary Cake
12/4/2012
Entity
The
Data Model
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:
http://msdn.microsoft.com/en-us/library/ee382825.aspx
12/4/2012
Entity
Type
key, inheritance, entity Sets, entity container
entity
Association
foreign
Type
Property
Boolean,
12/4/2012
12/4/2012
Entity Framework 4
Conceptual
12/4/2012
Conceptual
schema definition language (CSDL) Conceptual model == Domain model .csdl file extension CSDL is Entity Frameworks implementation of the Entity Data Model
12/4/2012
Store
schema definition language (SSDL) Storage model == Logical model Storage models are provider-specific .ssdl file extension
12/4/2012
10
Mapping
specification language (MSL) Maps between conceptual and storage models .msl file extension
12/4/2012
11
EF
Providers
Indirect access to other DBs using ODBC, OLEDB
ADO.NET
http://msdn.microsoft.com/en-us/data/dd363565.aspx
12/4/2012
12
Entity
Data Model Wizard ADO.NET Entity Data Model Designer Update Model Wizard Command line tool EDM Generator (EdmGen.exe)
12/4/2012
13
T4
Templates used to generate Entity classes from CSDL Entities based on EntitySet
Tied
Plain
Need
POCO
14
12/4/2012
15
12/4/2012
16
Formerly
WCF
Exposes
http://localhost/Northwind.svc/Customers(ALFKI) http://localhost/Northwind.svc/Customers('ALFKI')/Orders?$
filter=Freight gt 50
12/4/2012
19
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:
12/4/2012
21
Entity
Framework Provider
Entity Data Models to structure access
Uses
Reflection
Exposes
Provider
data structures with interface IQueryable
Custom
Roll
Provider
your own
Link
http://msdn.microsoft.com/en-us/library/dd672591.aspx
12/4/2012
22
Service
Act
Operators
Interceptors
Act
12/4/2012
23
WCF
.NET
Framework Silverlight
OData
PHP Java Ruby Windows
SDK
(AJAX)
Javascript
24
12/4/2012
25
OOTB
IE Experience with WCF DS Atom feeds bad Make this change to see Atom feeds properly:
Tools->
12/4/2012
26
In Summary
Entity
Data Services 4
OData
28
This
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)
12/4/2012
31