oct 2 2007 * brad tutterow. vs 2008.net 3.5linq entity framework the ado.net entity framework is...

of 28 /28
Oct 2 2007 * Brad Tutterow

Author: augustus-phillips

Post on 04-Jan-2016

218 views

Category:

Documents


0 download

Embed Size (px)

TRANSCRIPT

  • Oct 2 2007 * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • The ADO.NET Entity Framework is part of Microsofts next generation of .NET technologies.It is intended to make it easier and more effective for object-oriented applications to work with data.*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Originally intended to be part of the Visual Studio 2008 ReleaseNow scheduled for later.Entity Framework is currently Beta 2Entity Framework Tools are currently CTP*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Inherit differences between data expression in a relational database and the same data expressed in an object-oriented application.*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Almost any business application today has to speak to a relational database.This involves the usual suspects of tables with foreign keys, a smattering of views, and generally a gob of stored procedures.

    *Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Applications themselves are written in a completely different world.The same data that lives in the relational database is represented entirely differently in the application.*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • The result of this impedance mismatch is that developers devote a lot of time and energy writing code to translate between how the database likes to see data and how the application likes to see data.*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Hibernate (Java)Enterprise Objects Framework (Mac OS)NHibernate (.NET)LINQ to SQL (Visual Studio 2008)And many, many, more

    *Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • The ADO.NET Entity Framework seeks to remedy the problem by providing a layer of abstraction between the logical data model and the application domain.*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Closer to the application problem spaceBetter suited for object oriented programmingSupports InheritanceSupports complex typesRelationships are more meaningful to the application*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • The tools and technology that developers will interact with when using the ADO.NET Entity Framework*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • A gob of XML that definesLogical Data Tables, Views, Foreign KeysEntity Objects that Map to the Logical DataThe Mapping Between the Two*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • A Visual Studio Designer that protects developers from the XML that is the EDM*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • A code-generated data context created from the Entity Data ModelResponsible for managing communication between the conceptual data model and the logical data model*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Code-generated class definitions for objects defined in the EDM.*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • How do we get data out of the fancy Entity Data Model?*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • A brand new SQL language to learnLeverages the rich, object-oriented Entity Data Model InheritanceCollectionsComplex TypesLiteral Strings No Compiler CheckingQuestionable value in embedded SQL in code*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Queries the object model created against the EDMStill string-based. No compiler checkingAn ugly mix of code and eSQL statements*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Full compiler checking. No wondering if the query is valid.A fun new SQL-Like syntaxMore OO-ish

    *Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Getting data out of the Entity Data Model using LINQ to Entities*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • The power of the Entity Data Model contrasted to a logical data model of tables and stored procedures.*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Database TablesEntity Data Model*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Combining Two Tables into one EDM Entity*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Database TablesEntity Data Model*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Implementing Inheritance by marking one Entity as a subclass of another*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • Implement Complex Types (e.g. Address)Consume Conceptual Model with Reporting Services and other BI ToolsCreate an EDM that talks to stored proceduresUse transactions, manage concurrency, cache execution plans*Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

  • *Daugherty Business Solutions * Brad Tutterow

    Database Result DesiredEDM Object ManipulationINSERT ROWCreate new objectAdd object to EDM ContextUpdate ContextDELETE ROWGet instance of object from EDM ContextAsk Context to remove the objectUpdate ContextUPDATE ROWGet instance of object from EDM ContextUpdate objectUpdate Context

    Daugherty Business Solutions * Brad Tutterow

  • *Daugherty Business Solutions * Brad Tutterow

    Daugherty Business Solutions * Brad Tutterow

    *