1 / 10

Introducing Entity Framework 4.0

Introducing Entity Framework 4.0. Jeff Derstadt Senior Development Lead Microsoft Corporation jeffders@microsoft.com. Agenda. Entity Framework Basics What’s New in .NET 4.0. Data Access. Object Relational Mapping. SQL. Level of Abstraction. Typed DataSet. ODBC. Entity Framework.

aira
Download Presentation

Introducing Entity Framework 4.0

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introducing Entity Framework 4.0 Jeff Derstadt Senior Development Lead Microsoft Corporation jeffders@microsoft.com

  2. Agenda • Entity Framework Basics • What’s New in .NET 4.0

  3. Data Access Object Relational Mapping SQL Level of Abstraction Typed DataSet ODBC Entity Framework RDO DataSet OLE DB ADO DAAB ADO.NET (SqlClient)

  4. Entity Framework in a Nutshell class Customer { … } C1 C1 from c in ctx.Customers where c.Name.StartsWith(“A”) select c C2 C2 C3 C3 Entity Framework Model Change Tracking LINQ Translation Materialization Update Pipeline DB

  5. Goal: Simple and seamless data access for the .NET platform Better layering Better re-use of existing knowledge and assets EDM – Entity Data Model An abstract model for defining entities and relationships Includes schema and mapping Store Schema Definition (SSDL) Conceptual Schema Definition (CSDL) Mapping Schema between the two (MSL) Entity Framework An implementation of EDM and an ORM layer on top A framework for using entities over data Entity Framework in a Nutshell

  6. Database First (VS 2008 and .NET 3.5 SP1) Getting Started why? it already exists, or you want low level control over the database DB Model Design time Design time Code • Model First (VS 2010 and .NET 4.0) why? you want separation from code and database in a declarative format DB Model Design time Design time Code • Code First (Entity Framework Feature CTP3) why? primarily focused on code shape, database is an implementation detail DB Model Runtime Runtime Code

  7. Models and DataEntity Framework 4 Style Demo

  8. Model-first development Automatic pluralization Lazy loading POCO class support T4 Code Generation Template customization ObjectSet/IObjectSet Foreign keys in models Virtual SaveChanges ExecuteStoreQuery ExecuteStoreCommand More LINQ operator support What’s New in .NET 4.0 There’s more! • Self-tracking entities • SQL generation improvements • ObjectStateManager control • WPF designer integration • SPROC import improvements • Model defined functions • Code-Only development (Feature CTP)

  9. Thank you for your Attention! • For more Information please contact • Jeff Derstadt • Senior Development Lead • jeffders@microsoft.com • 425-706-9683 • Microsoft Corporation • 1 Microsoft Way • Redmond, WA 98052 USA http://msdn.microsoft.com/data Gives us feedback http://blogs.msdn.com/adonet http://blogs.msdn.com/efdesign

More Related