• Like
Introducing Entity Framework
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Introducing Entity Framework


this is an introduction session about Microsoft Entity Framework 4.0

this is an introduction session about Microsoft Entity Framework 4.0

Published in Technology , Spiritual
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
No Downloads


Total Views
On SlideShare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide
  • References:ADO.NET 2.0 Feature Matrix: http://msdn.microsoft.com/en-us/library/ms379542(VS.80).aspxWikipedia (history of .NET): http://en.wikipedia.org/wiki/.NET_FrameworkMSDN ADO.NET 1.1/2.0: http://msdn.microsoft.com/en-us/data/aa937722.aspxBrief the evolution of ADO.net as a data access technology for the .NET platform.ADO.net is the first Object Oriented data access technology introduced by MicrosoftFirst disconnected modelUses structured XML for caching and storage of dataIntegrates with other .NET technologies like web services and remotingNew in .NET Framework 2.0Generics, Anonymous methods, Lambda expressions, partial classesDeclarative data binding
  • What’s new in .NET framework (features and components evolution): http://msdn.microsoft.com/en-us/library/ms171868.aspx
  • What’s new in .NET framework (features and components evolution): http://msdn.microsoft.com/en-us/library/ms171868.aspx


  • 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}
  • 3. Load Related Objects
    Inheritance in Entity Framework
    Entity Framework providers and multiple database support
    Entity Framework Limitations
    External Tools
    Agenda (Cont.)
  • 4. History of ADO .Net
  • 5.
  • 6.
  • 7.
  • 8. Object Relational Mapping
  • 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
    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)
    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<T> Class
    EntityCollection<T> 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
    External Tools
  • 45. References
  • 46. MSDN
    Programming Guide (Entity Framework)
    Load Related Objects (Entity Framework)
    Inheritance in Entity Framework
    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
  • 47. Community
    Zeeshan Hirani Entity Framework Learning Guide
    Gil Fink on Entity Framework
    Moses’ blog on Entity Framework
    Entity Framework Supported Mapping Scenarios White Paper by Asad Khan
    References (Cont.)