entity framework overview
of 17
/17
Entity Framework Eyal Vardi CEO E4D Solutions LTD Microsoft MVP Visual C# blog: www.eVardi.com
Embed Size (px)
DESCRIPTION
Entity Framework OverviewTRANSCRIPT
- 1. Entity Framework
Eyal Vardi
CEO E4D Solutions LTDMicrosoft MVP Visual C#blog: www.eVardi.com - 2. Agenda
Data Access History
OO vs. Relational World
EF Architecture
Development Approaches
EF 4.0+ New API
EDM
LINQ to Entities
Entity SQL
Conceptual Model
Object Services
Mapping
Entity Client Provider
StorageModel
ADO.NET Provider - 3. Data Access History
- 4. Services:- Change tracking- Concurrency control- Object
identity
SQL or Stored Procs
Rows
SQLServer
Entity Framework
Entity Framework Flow
Application
from c in db.Customerswhere c.City == "London"select new { c.Name, c.Phone }
Objects
LINQ Query
SubmitChanges()
EDMX
ADO.NET Provider
SQL Query
select Name, Phonefrom customerswhere city = 'London' - 5. OO vs. Relational World
Data Types
Associations
Granularity
Inheritance
Identity - 6. EF Architecture
SQLServer
EDM
LINQ to Entities
Entity SQL
Conceptual Model
Object Services
Mapping
Entity Client Provider
StorageModel
ADO.NET Provider - 7. Entity Data Model (EDM)
The EDM is the link between the model and the database.
The EDM is that it decouples your application from the underlying store.
Entity Data Model (EDM)
StorageModel
(SSDL)
Mapping
(MSL)
Conceptual Model (CSDL)
Storage - 8. Object Services
Materialization
The process of transforming the data obtained from the Entity Client data provider, which has a tabular structure, into objects.
Change tracking
Tracks any changes made to the objects.
Query transformation
Translates queries it into a command tree thats then passed on to the underlying Entity Client.
- Object identities