SlideShare une entreprise Scribd logo
1  sur  47
Introducing Entity Framework EF v1.0
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} Agenda
Load Related Objects Inheritance in Entity Framework Entity Framework providers and multiple database support Entity Framework Limitations External Tools References Agenda (Cont.)
History of ADO .Net
Object Relational Mapping {ORM}
ORM Basics & Concepts
What is Entity Framework? Why it is considered an ORM?
What is Entity Framework? An ORM framework, Why? Database Independent Extensible Part of Microsoft .Net framework 3.5 SP1
Getting Started
Entity Framework Architecture
Entity Framework Architecture
Entity Data Model (EDM) What is Entity Data Mode?
Entity Data Model (EDM)
EDM in Action
Entity Client & Object Services
Entity Client EntityClient Provider for Entity Framework System.Data.EntityClient Abstracts DBMS Providers for Entity Framework Architecture
Entity Client in Action
Object Services
Object Services in Action
Break (30 minutes)
LINQ to Entities & Entity SQL
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
LINQ to Entities in Action
Entity SQL (eSQL) Supported 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
Entity SQL in Action
Entity SQL Vs LINQ to Entities Dynamic queries (LINQ is compiled) Store Function/Procedures is only supported in eSQL
Load Related Objects
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
Load Related Objects in Action
Inheritance in Entity Framework
Inheritance in Entity Framework Table-per-Hierarchy (TPH) Table-per-Type (TPT)
One table in storage to maintain data for all the types in an inheritance hierarchy. Table-per-Hierarchy (TPH)
[object Object],Table-per-Type (TPT)
Inheritance in Action
Entity Framework Providers Multiple database support
Entity Framework Providers MySQL Connectoret (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
Multiple Database Support
Entity Framework Limitations
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
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.)
LINQPad eSQLBlast http://code.msdn.microsoft.com/esql/ External Tools
References
MSDN Programming Guide (Entity Framework) Load Related Objects (Entity Framework) Inheritance in Entity Framework TPH TPT 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 References
Community Zeeshan Hirani Entity Framework Learning Guide Post PDF Gil Fink on Entity Framework Moses’ blog on Entity Framework Entity Framework Supported Mapping Scenarios White Paper by Asad Khan References (Cont.)

Contenu connexe

Tendances

Entity Framework: Code First and Magic Unicorns
Entity Framework: Code First and Magic UnicornsEntity Framework: Code First and Magic Unicorns
Entity Framework: Code First and Magic Unicorns
Richie Rump
 
Entity framework code first
Entity framework code firstEntity framework code first
Entity framework code first
Confiz
 
ADO.NET Entity Framework
ADO.NET Entity FrameworkADO.NET Entity Framework
ADO.NET Entity Framework
Doncho Minkov
 
Microsoft SQL Server 2008
Microsoft SQL Server 2008Microsoft SQL Server 2008
Microsoft SQL Server 2008
Hossein Zahed
 

Tendances (20)

Entity Framework v2 Best Practices
Entity Framework v2 Best PracticesEntity Framework v2 Best Practices
Entity Framework v2 Best Practices
 
Entity Framework 4
Entity Framework 4Entity Framework 4
Entity Framework 4
 
Entity Framework: Code First and Magic Unicorns
Entity Framework: Code First and Magic UnicornsEntity Framework: Code First and Magic Unicorns
Entity Framework: Code First and Magic Unicorns
 
Entity framework code first
Entity framework code firstEntity framework code first
Entity framework code first
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overview
 
Entity framework
Entity frameworkEntity framework
Entity framework
 
Introducing the Entity Framework
Introducing the Entity FrameworkIntroducing the Entity Framework
Introducing the Entity Framework
 
Entity Framework - Entity Data Model (edm)
Entity Framework - Entity Data Model (edm)Entity Framework - Entity Data Model (edm)
Entity Framework - Entity Data Model (edm)
 
ADO.NET Entity Framework
ADO.NET Entity FrameworkADO.NET Entity Framework
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)
 
Building nTier Applications with Entity Framework Services
Building nTier Applications with Entity Framework ServicesBuilding nTier Applications with Entity Framework Services
Building nTier Applications with Entity Framework Services
 
Building nTier Applications with Entity Framework Services (Part 2)
Building nTier Applications with Entity Framework Services (Part 2)Building nTier Applications with Entity Framework Services (Part 2)
Building nTier Applications with Entity Framework Services (Part 2)
 
Entity Framework - Queries
Entity Framework -  QueriesEntity Framework -  Queries
Entity Framework - Queries
 
ADO.NET Entity Framework
ADO.NET Entity FrameworkADO.NET Entity Framework
ADO.NET Entity Framework
 
LINQ to Relational in Visual Studio 2008 SP1
LINQ to Relational in Visual Studio 2008 SP1LINQ to Relational in Visual Studio 2008 SP1
LINQ to Relational in Visual Studio 2008 SP1
 
Entity Framework - Object Services
Entity Framework -  Object ServicesEntity Framework -  Object Services
Entity Framework - Object Services
 
Back-2-Basics: .NET Coding Standards For The Real World
Back-2-Basics: .NET Coding Standards For The Real WorldBack-2-Basics: .NET Coding Standards For The Real World
Back-2-Basics: .NET Coding Standards For The Real World
 
Microsoft Entity Framework
Microsoft Entity FrameworkMicrosoft Entity Framework
Microsoft Entity Framework
 
Microsoft SQL Server 2008
Microsoft SQL Server 2008Microsoft SQL Server 2008
Microsoft SQL Server 2008
 
Lerman Vvs14 Ef Tips And Tricks
Lerman Vvs14  Ef Tips And TricksLerman Vvs14  Ef Tips And Tricks
Lerman Vvs14 Ef Tips And Tricks
 

En vedette

05 entity framework
05 entity framework05 entity framework
05 entity framework
glubox
 

En vedette (20)

Continuous Deployment
Continuous DeploymentContinuous Deployment
Continuous Deployment
 
Lerman Adx303 Entity Framework 4 In Aspnet
Lerman Adx303 Entity Framework 4 In AspnetLerman Adx303 Entity Framework 4 In Aspnet
Lerman Adx303 Entity Framework 4 In Aspnet
 
Using sql server in c sharp
Using sql server in c sharpUsing sql server in c sharp
Using sql server in c sharp
 
Real-world Entity Framework
Real-world Entity FrameworkReal-world Entity Framework
Real-world Entity Framework
 
Entity framework
Entity frameworkEntity framework
Entity framework
 
Getting started with entity framework 6 code first using mvc 5
Getting started with entity framework 6 code first using mvc 5Getting started with entity framework 6 code first using mvc 5
Getting started with entity framework 6 code first using mvc 5
 
ADO.NET
ADO.NETADO.NET
ADO.NET
 
Elements of DDD with ASP.NET MVC & Entity Framework Code First v2
Elements of DDD with ASP.NET MVC & Entity Framework Code First v2Elements of DDD with ASP.NET MVC & Entity Framework Code First v2
Elements of DDD with ASP.NET MVC & Entity Framework Code First v2
 
Ado .net
Ado .netAdo .net
Ado .net
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
 
05 entity framework
05 entity framework05 entity framework
05 entity framework
 
Entity Framework and Domain Driven Design
Entity Framework and Domain Driven DesignEntity Framework and Domain Driven Design
Entity Framework and Domain Driven Design
 
API as-a-Product with Azure API Management (APIM)
API as-a-Product with Azure API Management (APIM)API as-a-Product with Azure API Management (APIM)
API as-a-Product with Azure API Management (APIM)
 
Chapter 3: ado.net
Chapter 3: ado.netChapter 3: ado.net
Chapter 3: ado.net
 
Ado.net
Ado.netAdo.net
Ado.net
 
The ASP.NET Web API for Beginners
The ASP.NET Web API for BeginnersThe ASP.NET Web API for Beginners
The ASP.NET Web API for Beginners
 
Ado.net
Ado.netAdo.net
Ado.net
 
Dependency Injection
Dependency InjectionDependency Injection
Dependency Injection
 
Version Control with SVN
Version Control with SVNVersion Control with SVN
Version Control with SVN
 
ADO.NET
ADO.NETADO.NET
ADO.NET
 

Similaire à Introducing Entity Framework 4.0

Dev Sql Beyond Relational
Dev Sql Beyond RelationalDev Sql Beyond Relational
Dev Sql Beyond Relational
rsnarayanan
 
What's New for Data?
What's New for Data?What's New for Data?
What's New for Data?
ukdpe
 
Ado.net entity framework_4.0
Ado.net entity framework_4.0Ado.net entity framework_4.0
Ado.net entity framework_4.0
Rishu Mehra
 
Ado.Net Data Services (Astoria)
Ado.Net Data Services (Astoria)Ado.Net Data Services (Astoria)
Ado.Net Data Services (Astoria)
Igor Moochnick
 
Time for a REST - .NET Framework v3.5 & RESTful Web Services
Time for a REST - .NET Framework v3.5 & RESTful Web ServicesTime for a REST - .NET Framework v3.5 & RESTful Web Services
Time for a REST - .NET Framework v3.5 & RESTful Web Services
ukdpe
 
Ling to SQL and Entity Framework performance analysis
Ling to SQL and Entity Framework performance analysisLing to SQL and Entity Framework performance analysis
Ling to SQL and Entity Framework performance analysis
Alexander Konduforov
 

Similaire à Introducing Entity Framework 4.0 (20)

ASP.NET 3.5 SP1
ASP.NET 3.5 SP1ASP.NET 3.5 SP1
ASP.NET 3.5 SP1
 
Applying EF Code First at Your Job
Applying EF Code First at Your JobApplying EF Code First at Your Job
Applying EF Code First at Your Job
 
Entity Framework v1 and v2
Entity Framework v1 and v2Entity Framework v1 and v2
Entity Framework v1 and v2
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overview
 
Dev Sql Beyond Relational
Dev Sql Beyond RelationalDev Sql Beyond Relational
Dev Sql Beyond Relational
 
What's New for Data?
What's New for Data?What's New for Data?
What's New for Data?
 
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)
 
LINQ 2 SQL Presentation To Palmchip And Trg, Technology Resource Group
LINQ 2 SQL Presentation To Palmchip  And Trg, Technology Resource GroupLINQ 2 SQL Presentation To Palmchip  And Trg, Technology Resource Group
LINQ 2 SQL Presentation To Palmchip And Trg, Technology Resource Group
 
Ado.net entity framework_4.0
Ado.net entity framework_4.0Ado.net entity framework_4.0
Ado.net entity framework_4.0
 
Ado.Net Data Services (Astoria)
Ado.Net Data Services (Astoria)Ado.Net Data Services (Astoria)
Ado.Net Data Services (Astoria)
 
Entity framework introduction sesion-1
Entity framework introduction   sesion-1Entity framework introduction   sesion-1
Entity framework introduction sesion-1
 
Entity Framework V1 and V2
Entity Framework V1 and V2Entity Framework V1 and V2
Entity Framework V1 and V2
 
Time for a REST - .NET Framework v3.5 & RESTful Web Services
Time for a REST - .NET Framework v3.5 & RESTful Web ServicesTime for a REST - .NET Framework v3.5 & RESTful Web Services
Time for a REST - .NET Framework v3.5 & RESTful Web Services
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
Ling to SQL and Entity Framework performance analysis
Ling to SQL and Entity Framework performance analysisLing to SQL and Entity Framework performance analysis
Ling to SQL and Entity Framework performance analysis
 
Entity Framework 4 In Microsoft Visual Studio 2010
Entity Framework 4 In Microsoft Visual Studio 2010Entity Framework 4 In Microsoft Visual Studio 2010
Entity Framework 4 In Microsoft Visual Studio 2010
 
Hibernate
HibernateHibernate
Hibernate
 
PDI data vault framework #pcmams 2012
PDI data vault framework #pcmams 2012PDI data vault framework #pcmams 2012
PDI data vault framework #pcmams 2012
 
Presentation pdi data_vault_framework_meetup2012
Presentation pdi data_vault_framework_meetup2012Presentation pdi data_vault_framework_meetup2012
Presentation pdi data_vault_framework_meetup2012
 
Building RESTful Applications with OData
Building RESTful Applications with ODataBuilding RESTful Applications with OData
Building RESTful Applications with OData
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Dernier (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
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
 
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
 
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
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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
 

Introducing Entity Framework 4.0

Notes de l'éditeur

  1. 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
  2. What’s new in .NET framework (features and components evolution): http://msdn.microsoft.com/en-us/library/ms171868.aspx
  3. What’s new in .NET framework (features and components evolution): http://msdn.microsoft.com/en-us/library/ms171868.aspx