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

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...South Asia Fast Track
 
Values and Courage
Values and CourageValues and Courage
Values and Courageombpaho
 
Greenov - Presentation Intercluster Ecoconstruction
Greenov - Presentation Intercluster EcoconstructionGreenov - Presentation Intercluster Ecoconstruction
Greenov - Presentation Intercluster Ecoconstructionecobuild.brussels
 
OLT conference Learning analytics
OLT conference Learning analyticsOLT conference Learning analytics
OLT conference Learning analyticsShirley Alexander
 
Otto Dix Prague Street (1920)
Otto Dix Prague Street (1920)Otto Dix Prague Street (1920)
Otto Dix Prague Street (1920)Dimitri Kokkonis
 
Guardian_multiplatform sales
Guardian_multiplatform salesGuardian_multiplatform sales
Guardian_multiplatform salesDele Kadiri
 
ใบงานที่ 2-8
ใบงานที่ 2-8ใบงานที่ 2-8
ใบงานที่ 2-8Robotto' Data
 
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 ArtsRobin Perlah
 
Tips for Muslims Entrepreneurs 1
Tips for Muslims Entrepreneurs 1Tips for Muslims Entrepreneurs 1
Tips for Muslims Entrepreneurs 1Hasnul Sulaiman
 
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 presentationShirley Alexander
 
Sip project and innovation pt2
Sip project and innovation pt2Sip project and innovation pt2
Sip project and innovation pt2Sin FromBirth
 
No more-bolero
No more-boleroNo more-bolero
No more-bolerodirk30
 
Right to left_strategy
Right to left_strategyRight to left_strategy
Right to left_strategykmwhitCan
 
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 PabloRoberto Domínguez Leyva
 
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 8Khalil Saleem
 
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 AchilliRuben LLumihucci
 

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

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)David McCarter
 
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 2010David McCarter
 
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)David McCarter
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework OverviewEyal Vardi
 
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 dcJoseph D'Antoni
 
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 DataKingsley Uyi Idehen
 
Entity Framework V1 and V2
Entity Framework V1 and V2Entity Framework V1 and V2
Entity Framework V1 and V2ukdpe
 
Microsoft Entity Framework
Microsoft Entity FrameworkMicrosoft Entity Framework
Microsoft Entity FrameworkMahmoud Tolba
 
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 FirstEnea Gabriel
 
Developing Actors in Azure with .net
Developing Actors in Azure with .netDeveloping Actors in Azure with .net
Developing Actors in Azure with .netMarco Parenzan
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDESbputhal
 
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 ServicesDebmalya Biswas
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework OverviewEric Nelson
 

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

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 WorkerThousandEyes
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 

Dernier (20)

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
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 

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