introducing entity framework

of 47/47
Introducing Entity Framework EF v1.0

Post on 24-May-2015

21.176 views

Category:

Technology

0 download

Embed Size (px)

DESCRIPTION

this is an introduction session about Microsoft Entity Framework 4.0

TRANSCRIPT

  • 1. Introducing Entity Framework
    EF v1.0

2. History of ADO.Net
Object Relational Mapping {ORM}
What is Entity Framework?
Entity Framework Architecture
Entity Data Model {EDM}
Entity Client & Object Services
LINQ to Entities & Entity SQL {eSQL}
Agenda
3. Load Related Objects
Inheritance in Entity Framework
Entity Framework providers and multiple database support
Entity Framework Limitations
External Tools
References
Agenda (Cont.)
4. History of ADO .Net
5. 6. 7. 8. Object Relational Mapping
{ORM}
9. ORM Basics & Concepts
10. What is Entity Framework?
Why it is considered an ORM?
11. What is Entity Framework?
An ORM framework, Why?
Database Independent
Extensible
Part of Microsoft .Net framework 3.5 SP1
12. Getting Started
13. Entity Framework Architecture
14. Entity Framework Architecture
15. Entity Data Model (EDM)
What is Entity Data Mode?
16. Entity Data Model (EDM)
17. EDM in Action
18. Entity Client & Object Services
19. Entity Client
EntityClient Provider for Entity Framework System.Data.EntityClient
Abstracts DBMS Providers for Entity Framework Architecture
20. Entity Client in Action
21. Object Services
22. Object Services in Action
23. Break (30 minutes)
24. LINQ to Entities & Entity SQL
25. LINQ to Entities
What is LINQ
LINQ to Objects
LINQ to XML
LINQ to DataSets
LINQ to SQL
And more E.g. (LINQ to Twitter, LINQ to Flickr etc)
LINQ to Entities
26. LINQ to Entities in Action
27. Entity SQL (eSQL)
Supported
NOT Supported
SQL based
Provider neutral
Supports EDM types
First class collections
Canonical functions
DML statements (insert, update, delete)
DDL statement (create, alter, drop)
Grouping functions (CUBE, ROLLUP, GROUPING_SET
Does not support the * construct
28. Entity SQL in Action
29. Entity SQL Vs LINQ to Entities
Dynamic queries (LINQ is compiled)
Store Function/Procedures is only supported in eSQL
30. Load Related Objects
31. Entity relation mapping (one to one, one to many, many to many)
Deferred Loading Vs Eager Loading Vs Explicit Loading
ObjectQuery Class
EntityCollection Class
EntityReference Class
Load Related Objects
32. Load Related Objects in Action
33. Inheritance in Entity Framework
34. Inheritance in Entity Framework
Table-per-Hierarchy (TPH)
Table-per-Type (TPT)
35. One table in storage to maintain data for all the types in an inheritance hierarchy.
Table-per-Hierarchy (TPH)
36.

  • Separate table in storage to maintain data for each type in the inheritance hierarchy.

Table-per-Type (TPT)
37. Inheritance in Action
38. Entity Framework Providers
Multiple database support
39. Entity Framework Providers
MySQL Connector et (MySQL)
Devart (Oracle, MySQL, SQLite and PostgreSQL)
IBM (DB2, Informix and U2 databases)
Phoenix Software Solutions (SQLite)
Npgsql (PostgreSQL)
Sybase SQL Anywhere (SQL Anywhere 11)
Firebird (Firebird)
VistaDB (VistaDB 4.x)
Multiple Database Support in Entity Framework
40. Multiple Database Support
41. Entity Framework Limitations
42. Known Issues and Considerations in LINQ to Entities
Ordering Information Lost
Nested Queries. Nested Queries May Fail with SQL Server 2000
Unsigned Integers Not Supported
Enums not supported
Referencing Non-Scalar Closures Not Supported
Custom extension methods Not Supported
Some common sense methods not supported (Single, SingleOrDefault)
Entity Framework Limitations
43. Entity Framework VS.Net Designer Limitations
limitations in Entity SQL
DDL not supported
DML not supported (insert, update, delete)
Design issues
No Persistence Ignorance support a.k.a POCO
Leakage of Testability
I am sure there might be more
Entity Framework Limitations (Cont.)
44. LINQPad
eSQLBlast
http://code.msdn.microsoft.com/esql/
External Tools
45. References
46. MSDN
Programming Guide (Entity Framework)
Load Related Objects (Entity Framework)
Inheritance in Entity Framework
TPH
TPT
Known Issues and Considerations in LINQ to Entities
Entity Framework and LINQ to Entities Forums
ADO.NET Entity Framework and LINQ to Entities (Pre-Release) Forums
References
47. Community
Zeeshan Hirani Entity Framework Learning Guide
Post
PDF
Gil Fink on Entity Framework
Moses blog on Entity Framework
Entity Framework Supported Mapping Scenarios White Paper by Asad Khan
References (Cont.)