SlideShare une entreprise Scribd logo
1  sur  20
 The ADO.NET Entity
Framework is part of
Microsoft’s next
generation of .NET
technologies.
 It is intended to make it
easier and more
effective for object-
oriented applications to
work with data.
 Originally intended to
be part of theVisual
Studio 2008 Release
 Now scheduled for
“later”.
 Entity Framework is
currently Beta 2
 Entity FrameworkTools
are currently CTP
Inherit differences between data expression in a relational database and
the same data expressed in an object-oriented application.
• 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.
 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.
 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.
 Hibernate (Java)
 Enterprise Objects Framework (Mac OS)
 NHibernate (.NET)
 LINQ to SQL (Visual Studio 2008)
 And many, many, more …
 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.
 Closer to the application
problem space
 Better suited for object
oriented programming
 Supports Inheritance
 Supports complex types
 Relationships are more
meaningful to the
application
The tools and technology that developers will interact with when using
the ADO.NET Entity Framework
 A gob of XML that
defines
 Logical DataTables,
Views, Foreign Keys
 Entity Objects that Map
to the Logical Data
 The Mapping Between
theTwo
 AVisual Studio
Designer that protects
developers from the
XML that is the EDM
 A code-generated data
context created from
the Entity Data Model
 Responsible for
managing
communication
between the conceptual
data model and the
logical data model
 Code-generated class
definitions for objects
defined in the EDM.
 A brand new SQL language
to learn
 Leverages the rich, object-
oriented Entity Data Model
 Inheritance
 Collections
 ComplexTypes
 Literal Strings – No
Compiler Checking
 Questionable value in
embedded SQL in code
 Queries the object
model created against
the EDM
 Still string-based. No
compiler checking
 An ugly mix of code and
eSQL statements
 Full compiler checking.
No wondering if the
query is valid.
 A fun new SQL-Like
syntax
 More OO-ish
Database TablesDatabase Tables Entity Data ModelEntity Data Model
Database TablesDatabase Tables Entity Data ModelEntity Data Model

Contenu connexe

En vedette

OLT conference Learning analytics
OLT conference Learning analyticsOLT conference Learning analytics
OLT conference Learning analytics
Shirley Alexander
 
Guardian_multiplatform sales
Guardian_multiplatform salesGuardian_multiplatform sales
Guardian_multiplatform sales
Dele Kadiri
 
ใบงานที่ 2-8
ใบงานที่ 2-8ใบงานที่ 2-8
ใบงานที่ 2-8
Robotto' Data
 
Sip project and innovation pt2
Sip project and innovation pt2Sip project and innovation pt2
Sip project and innovation pt2
Sin FromBirth
 
No more-bolero
No more-boleroNo more-bolero
No more-bolero
dirk30
 

En vedette (20)

Sourajit Aiyer - Trends in Consolidation in Indian Stock Broking - South Asia...
Sourajit Aiyer - Trends in Consolidation in Indian Stock Broking - South Asia...Sourajit Aiyer - Trends in Consolidation in Indian Stock Broking - South Asia...
Sourajit Aiyer - Trends in Consolidation in Indian Stock Broking - South Asia...
 
Values and Courage
Values and CourageValues and Courage
Values and Courage
 
Greenov - Presentation Intercluster Ecoconstruction
Greenov - Presentation Intercluster EcoconstructionGreenov - Presentation Intercluster Ecoconstruction
Greenov - Presentation Intercluster Ecoconstruction
 
Johnson Creek Clean-Up 2012
Johnson Creek Clean-Up 2012Johnson Creek Clean-Up 2012
Johnson Creek Clean-Up 2012
 
OLT conference Learning analytics
OLT conference Learning analyticsOLT conference Learning analytics
OLT conference Learning analytics
 
Otto Dix Prague Street (1920)
Otto Dix Prague Street (1920)Otto Dix Prague Street (1920)
Otto Dix Prague Street (1920)
 
Guardian_multiplatform sales
Guardian_multiplatform salesGuardian_multiplatform sales
Guardian_multiplatform sales
 
ใบงานที่ 2-8
ใบงานที่ 2-8ใบงานที่ 2-8
ใบงานที่ 2-8
 
3 ds presentation(web)
3 ds presentation(web)3 ds presentation(web)
3 ds presentation(web)
 
Proposal for Digital Solutions for See.Think.Do! at Burlington City Arts
Proposal for Digital Solutions for See.Think.Do! at Burlington City ArtsProposal for Digital Solutions for See.Think.Do! at Burlington City Arts
Proposal for Digital Solutions for See.Think.Do! at Burlington City Arts
 
Tips for Muslims Entrepreneurs 1
Tips for Muslims Entrepreneurs 1Tips for Muslims Entrepreneurs 1
Tips for Muslims Entrepreneurs 1
 
2013 ACODE Learning Technologies Leadership Institute presentation
2013 ACODE Learning Technologies Leadership Institute presentation2013 ACODE Learning Technologies Leadership Institute presentation
2013 ACODE Learning Technologies Leadership Institute presentation
 
Sip project and innovation pt2
Sip project and innovation pt2Sip project and innovation pt2
Sip project and innovation pt2
 
No more-bolero
No more-boleroNo more-bolero
No more-bolero
 
Right to left_strategy
Right to left_strategyRight to left_strategy
Right to left_strategy
 
Cronología de la Transición Neda y Pablo
Cronología de la Transición Neda y PabloCronología de la Transición Neda y Pablo
Cronología de la Transición Neda y Pablo
 
Introduction to building apps for windows phone 8
Introduction to building apps for windows phone 8Introduction to building apps for windows phone 8
Introduction to building apps for windows phone 8
 
Prueba
PruebaPrueba
Prueba
 
Slideshare
Slideshare Slideshare
Slideshare
 
Results of DNA Horses before Columbus research by geneticist Alessandro Achilli
Results of DNA Horses before Columbus research by geneticist Alessandro AchilliResults of DNA Horses before Columbus research by geneticist Alessandro Achilli
Results of DNA Horses before Columbus research by geneticist Alessandro Achilli
 

Similaire à ADO.NET Entity Framework

Deploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcDeploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dc
Joseph D'Antoni
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDES
bputhal
 

Similaire à ADO.NET Entity Framework (20)

Building nTier Applications with Entity Framework Services (Part 1)
Building nTier Applications with Entity Framework Services (Part 1)Building nTier Applications with Entity Framework Services (Part 1)
Building nTier Applications with Entity Framework Services (Part 1)
 
Building N Tier Applications With Entity Framework Services 2010
Building N Tier Applications With Entity Framework Services 2010Building N Tier Applications With Entity Framework Services 2010
Building N Tier Applications With Entity Framework Services 2010
 
Building nTier Applications with Entity Framework Services (Part 1)
Building nTier Applications with Entity Framework Services (Part 1)Building nTier Applications with Entity Framework Services (Part 1)
Building nTier Applications with Entity Framework Services (Part 1)
 
Entity Framework
Entity FrameworkEntity Framework
Entity Framework
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overview
 
Entity framework
Entity frameworkEntity framework
Entity framework
 
Entity framework
Entity frameworkEntity framework
Entity framework
 
Deploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcDeploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dc
 
Making the Conceptual Layer Real via HTTP based Linked Data
Making the Conceptual Layer Real via HTTP based Linked DataMaking the Conceptual Layer Real via HTTP based Linked Data
Making the Conceptual Layer Real via HTTP based Linked Data
 
Entity Framework V1 and V2
Entity Framework V1 and V2Entity Framework V1 and V2
Entity Framework V1 and V2
 
Microsoft Entity Framework
Microsoft Entity FrameworkMicrosoft Entity Framework
Microsoft Entity Framework
 
Ef code first
Ef code firstEf code first
Ef code first
 
Elements of DDD with ASP.NET MVC & Entity Framework Code First
Elements of DDD with ASP.NET MVC & Entity Framework Code FirstElements of DDD with ASP.NET MVC & Entity Framework Code First
Elements of DDD with ASP.NET MVC & Entity Framework Code First
 
Developing Actors in Azure with .net
Developing Actors in Azure with .netDeveloping Actors in Azure with .net
Developing Actors in Azure with .net
 
Onine exam 1
Onine exam 1Onine exam 1
Onine exam 1
 
.NET presentation
.NET presentation.NET presentation
.NET presentation
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDES
 
DDD
DDDDDD
DDD
 
Compositional AI: Fusion of AI/ML Services
Compositional AI: Fusion of AI/ML ServicesCompositional AI: Fusion of AI/ML Services
Compositional AI: Fusion of AI/ML Services
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overview
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Dernier (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

ADO.NET Entity Framework

  • 1.
  • 2.  The ADO.NET Entity Framework is part of Microsoft’s next generation of .NET technologies.  It is intended to make it easier and more effective for object- oriented applications to work with data.
  • 3.  Originally intended to be part of theVisual Studio 2008 Release  Now scheduled for “later”.  Entity Framework is currently Beta 2  Entity FrameworkTools are currently CTP
  • 4. Inherit differences between data expression in a relational database and the same data expressed in an object-oriented application.
  • 5. • 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.
  • 6.  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.
  • 7.  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.
  • 8.  Hibernate (Java)  Enterprise Objects Framework (Mac OS)  NHibernate (.NET)  LINQ to SQL (Visual Studio 2008)  And many, many, more …
  • 9.  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.
  • 10.  Closer to the application problem space  Better suited for object oriented programming  Supports Inheritance  Supports complex types  Relationships are more meaningful to the application
  • 11. The tools and technology that developers will interact with when using the ADO.NET Entity Framework
  • 12.  A gob of XML that defines  Logical DataTables, Views, Foreign Keys  Entity Objects that Map to the Logical Data  The Mapping Between theTwo
  • 13.  AVisual Studio Designer that protects developers from the XML that is the EDM
  • 14.  A code-generated data context created from the Entity Data Model  Responsible for managing communication between the conceptual data model and the logical data model
  • 15.  Code-generated class definitions for objects defined in the EDM.
  • 16.  A brand new SQL language to learn  Leverages the rich, object- oriented Entity Data Model  Inheritance  Collections  ComplexTypes  Literal Strings – No Compiler Checking  Questionable value in embedded SQL in code
  • 17.  Queries the object model created against the EDM  Still string-based. No compiler checking  An ugly mix of code and eSQL statements
  • 18.  Full compiler checking. No wondering if the query is valid.  A fun new SQL-Like syntax  More OO-ish
  • 19. Database TablesDatabase Tables Entity Data ModelEntity Data Model
  • 20. Database TablesDatabase Tables Entity Data ModelEntity Data Model