SlideShare a Scribd company logo
1 of 6
When was Entity Framework Released?
1. The first version of Entity Framework 3.5 was released along with Visual
Studio 2008 SP1 and .NET 3.5 SP1.
2. The second version (also the currentversion) of Entity Framework i.e. 4.0
was released along with VS 2010 and .NET 4.0.
(Diagramtaken fromMSDN)
 Before the release of Entity framework 3.5,thereweremany database
access technologies like DAO(Data Access Objects),RDO(RemoteData
Objects), then ADO (ActiveX Data Objects) and then finally ADO.NET.
 Although with ADO.NETworking with the DataSet and DataReader has
served our data access needs but a developer needs to spend a lot of time
being concerned with the details of the schema, trying to keep up with
database schema changes and doing redundanttasks while interacting with
the database, over and over again.
What is Entity Framework?
1. The ADO.NETEntity Framework (EF) is an Object/Relational mapping (ORM)
framework and is a set of technologies in ADO.NET, for developing
applications that interacts with data.
2. ADO.NET developer spends a lot of time keeping up with the database
changes whereas EF provides a mapping from the relational database
schema to the objects and offers an abstraction of ADO.NET.
3. So with EF, you can define Entity classes that are independent of a database
structure and then map them to the tables and associations of the
database.
4. Since we are now working with Entities which have their own schema, we
are shielded from the changes in the database. The object context keeps
tabs on the entities that are changed.
5. In simple words, with the Entity Framework, you are architecting, designing
and developing at a conceptual level. You are no more worried about the
‘specific details’ of communicating with the database and switching from
one relational database to the other is also possible with EF, without much
efforts.
6. The Entity Framework’sORMimplementation provides many more services
like change tracking, identity resolution, lazy loading, and query translation
so that developers can focus on their application-specific business logic
rather than the data access fundamentals.
To view more details about change tracking, identity resolution, lazy loading, and
query translation just visit the below link:
http://www.develop.com/entityframework4
7. Itbasically generates business objects and entities according to the
database tables and provides the mechanismfor:
 Performing basic CRUD (Create, Read, Update, Delete) operations.
 Easily managing "1 to 1", "1 to many", and "many to many"
relationships.
 Ability to haveinheritance relationships between entities.
What is the role of ADO.NET now?
 EF was not released with the intension to replace ADO.NET.
 It is in fact an enhancement to ADO.NET and helps eliminate the gap
between the application and the database.
 Behind the scene, EF uses ADO.NET classes, but the details are abstracted
from you.
 EF provides a shift from Database-oriented (DataReader, DataSet) to
Model-oriented development.
 So instead of focusing on a Database, a developer focuses on the Entity that
represents the Business Model of the application.
Is EF an alternative to ADO.NET?
the answer would be "yes and no".
Yes because the developer will not be writing ADO.NET methods and classes for
performing data operations and
NO because this model is actually written on top of ADO.NET, meaning under this
framework, we are still using ADO.NET.
The Detailed Folder/File structure of EF :
There are mainly 3 files in EF listed Below:
 CSDL- Conceptual schema definition language.
 SSDL - Storeschema definition language.
 MSL - Mapping specification language.
These are XML-based languages that respectively describethe conceptual model,
storagemodel, and the mapping between these models.
In an Entity Framework application, model and mapping metadata are loaded
fromthree files with extensions .csdl, .ssdl, and .msl.
When are they generated?
The Entity Data Model Designer (Entity Designer) stores model and mapping
information in an .edmx file at design time. At build time the Entity Designer uses
the information in an .edmx file to create the .csdl, .ssdl, and .msl files that are
needed by the Entity Framework atruntime.
Cpecial EF Folders:
Where are they located?
By default, they included in the binary file of output under bin folder. You are not
able see the physicalfiles. But you can also output CSDL, SSDL, and MSL Files as
saparated files . Here is how to make this happen.
You will find these files at below location:
There are mainly three approaches to create .edmx in the project
1. DatabaseFirstApproach
2. Model First Approach
3. Code FirstApproach

More Related Content

What's hot

Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework OverviewEric Nelson
 
Entity framework and how to use it
Entity framework and how to use itEntity framework and how to use it
Entity framework and how to use itnspyre_net
 
App designer2 in peoplesoft
App designer2 in peoplesoftApp designer2 in peoplesoft
App designer2 in peoplesoftVenkat Jyesta
 
Introducing the Entity Framework
Introducing the Entity FrameworkIntroducing the Entity Framework
Introducing the Entity FrameworkLearnNowOnline
 
IEEE 2014 DOTNET DATA MINING PROJECTS A novel model for mining association ru...
IEEE 2014 DOTNET DATA MINING PROJECTS A novel model for mining association ru...IEEE 2014 DOTNET DATA MINING PROJECTS A novel model for mining association ru...
IEEE 2014 DOTNET DATA MINING PROJECTS A novel model for mining association ru...IEEEMEMTECHSTUDENTPROJECTS
 
E2 d3 detailed description
E2 d3 detailed descriptionE2 d3 detailed description
E2 d3 detailed descriptionhipsrinoky
 
Environment Gap Analysis for Applications
Environment Gap Analysis for ApplicationsEnvironment Gap Analysis for Applications
Environment Gap Analysis for ApplicationsMike Reams
 
Revolution in integration!
Revolution in integration!Revolution in integration!
Revolution in integration!Gregor Vogrin
 
People soft application-designer-practice-8.43
People soft application-designer-practice-8.43People soft application-designer-practice-8.43
People soft application-designer-practice-8.43cesarvii
 
Microsoft Entity Framework
Microsoft Entity FrameworkMicrosoft Entity Framework
Microsoft Entity FrameworkMahmoud Tolba
 
A Hybrid Architecture for Web-based Expert Systems
A Hybrid Architecture for Web-based Expert SystemsA Hybrid Architecture for Web-based Expert Systems
A Hybrid Architecture for Web-based Expert SystemsWaqas Tariq
 

What's hot (18)

Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overview
 
Ef code first
Ef code firstEf code first
Ef code first
 
UNIT-1 Web services
UNIT-1 Web servicesUNIT-1 Web services
UNIT-1 Web services
 
Entity framework and how to use it
Entity framework and how to use itEntity framework and how to use it
Entity framework and how to use it
 
Ms Access
Ms AccessMs Access
Ms Access
 
App designer2 in peoplesoft
App designer2 in peoplesoftApp designer2 in peoplesoft
App designer2 in peoplesoft
 
Introducing the Entity Framework
Introducing the Entity FrameworkIntroducing the Entity Framework
Introducing the Entity Framework
 
IEEE 2014 DOTNET DATA MINING PROJECTS A novel model for mining association ru...
IEEE 2014 DOTNET DATA MINING PROJECTS A novel model for mining association ru...IEEE 2014 DOTNET DATA MINING PROJECTS A novel model for mining association ru...
IEEE 2014 DOTNET DATA MINING PROJECTS A novel model for mining association ru...
 
E2 d3 detailed description
E2 d3 detailed descriptionE2 d3 detailed description
E2 d3 detailed description
 
Environment Gap Analysis for Applications
Environment Gap Analysis for ApplicationsEnvironment Gap Analysis for Applications
Environment Gap Analysis for Applications
 
Ado
AdoAdo
Ado
 
Resume
ResumeResume
Resume
 
Revolution in integration!
Revolution in integration!Revolution in integration!
Revolution in integration!
 
People soft application-designer-practice-8.43
People soft application-designer-practice-8.43People soft application-designer-practice-8.43
People soft application-designer-practice-8.43
 
Microsoft Entity Framework
Microsoft Entity FrameworkMicrosoft Entity Framework
Microsoft Entity Framework
 
Introduction to Oracle
Introduction to OracleIntroduction to Oracle
Introduction to Oracle
 
A Hybrid Architecture for Web-based Expert Systems
A Hybrid Architecture for Web-based Expert SystemsA Hybrid Architecture for Web-based Expert Systems
A Hybrid Architecture for Web-based Expert Systems
 
Ebook5
Ebook5Ebook5
Ebook5
 

Viewers also liked

Unexpected insights from our summon usability study
Unexpected insights from our summon usability studyUnexpected insights from our summon usability study
Unexpected insights from our summon usability studyJoy Gambill
 
FP Platform Brochure
FP Platform BrochureFP Platform Brochure
FP Platform Brochurekathota
 
Planes & skew lines
Planes & skew linesPlanes & skew lines
Planes & skew linesTarun Gehlot
 
Msf safety-flash-13.23
Msf safety-flash-13.23Msf safety-flash-13.23
Msf safety-flash-13.23Jossian Brito
 
The Legal and the Islamic Sharea’ Law on Money Laundry
 The Legal and the Islamic Sharea’ Law on Money Laundry The Legal and the Islamic Sharea’ Law on Money Laundry
The Legal and the Islamic Sharea’ Law on Money Laundryjamal kelani
 
η θρησκευτική μεταρρύθμιση
η θρησκευτική μεταρρύθμισηη θρησκευτική μεταρρύθμιση
η θρησκευτική μεταρρύθμισηTania Apostolopoulou
 

Viewers also liked (8)

t
tt
t
 
Unexpected insights from our summon usability study
Unexpected insights from our summon usability studyUnexpected insights from our summon usability study
Unexpected insights from our summon usability study
 
FP Platform Brochure
FP Platform BrochureFP Platform Brochure
FP Platform Brochure
 
Planes & skew lines
Planes & skew linesPlanes & skew lines
Planes & skew lines
 
Plagiocreativo
PlagiocreativoPlagiocreativo
Plagiocreativo
 
Msf safety-flash-13.23
Msf safety-flash-13.23Msf safety-flash-13.23
Msf safety-flash-13.23
 
The Legal and the Islamic Sharea’ Law on Money Laundry
 The Legal and the Islamic Sharea’ Law on Money Laundry The Legal and the Islamic Sharea’ Law on Money Laundry
The Legal and the Islamic Sharea’ Law on Money Laundry
 
η θρησκευτική μεταρρύθμιση
η θρησκευτική μεταρρύθμισηη θρησκευτική μεταρρύθμιση
η θρησκευτική μεταρρύθμιση
 

Similar to Entity Framework

Intake 38 data access 4
Intake 38 data access 4Intake 38 data access 4
Intake 38 data access 4Mahmoud Ouf
 
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 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
 
Asp.net interview questions
Asp.net interview questionsAsp.net interview questions
Asp.net interview questionsAkhil Mittal
 
Ado.net session01
Ado.net session01Ado.net session01
Ado.net session01Niit Care
 
Entity Framework V1 and V2
Entity Framework V1 and V2Entity Framework V1 and V2
Entity Framework V1 and V2ukdpe
 
Document Based Data Modeling Technique
Document Based Data Modeling TechniqueDocument Based Data Modeling Technique
Document Based Data Modeling TechniqueCarmen Sanborn
 
6.origins genesis of .net technology
6.origins genesis of .net technology6.origins genesis of .net technology
6.origins genesis of .net technologyPramod Rathore
 
markfinleyResumeMarch2016
markfinleyResumeMarch2016markfinleyResumeMarch2016
markfinleyResumeMarch2016Mark Finley
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overviewukdpe
 
Silverlight difference faqs- 2
Silverlight difference faqs- 2Silverlight difference faqs- 2
Silverlight difference faqs- 2Umar Ali
 
.NET Vs ASP.NET – Make the Right Choice for Your Next Project.pdf
.NET Vs ASP.NET – Make the Right Choice for Your Next Project.pdf.NET Vs ASP.NET – Make the Right Choice for Your Next Project.pdf
.NET Vs ASP.NET – Make the Right Choice for Your Next Project.pdfAbel Willium
 
Automatic answer checker
Automatic answer checkerAutomatic answer checker
Automatic answer checkerYesu Raj
 
12_Data_Storage_Part_2.pptx
12_Data_Storage_Part_2.pptx12_Data_Storage_Part_2.pptx
12_Data_Storage_Part_2.pptxFaezNasir
 
Entity Core with Core Microservices.pptx
Entity Core with Core Microservices.pptxEntity Core with Core Microservices.pptx
Entity Core with Core Microservices.pptxKnoldus Inc.
 

Similar to Entity Framework (20)

Intake 37 ef1
Intake 37 ef1Intake 37 ef1
Intake 37 ef1
 
Intake 38 data access 4
Intake 38 data access 4Intake 38 data access 4
Intake 38 data access 4
 
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 framework1
Entity framework1Entity framework1
Entity framework1
 
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
 
Asp.net interview questions
Asp.net interview questionsAsp.net interview questions
Asp.net interview questions
 
Entity Framework 4
Entity Framework 4Entity Framework 4
Entity Framework 4
 
Ado.net session01
Ado.net session01Ado.net session01
Ado.net session01
 
Entity Framework V1 and V2
Entity Framework V1 and V2Entity Framework V1 and V2
Entity Framework V1 and V2
 
dot NET Framework
dot NET Frameworkdot NET Framework
dot NET Framework
 
Document Based Data Modeling Technique
Document Based Data Modeling TechniqueDocument Based Data Modeling Technique
Document Based Data Modeling Technique
 
6.origins genesis of .net technology
6.origins genesis of .net technology6.origins genesis of .net technology
6.origins genesis of .net technology
 
markfinleyResumeMarch2016
markfinleyResumeMarch2016markfinleyResumeMarch2016
markfinleyResumeMarch2016
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overview
 
Silverlight difference faqs- 2
Silverlight difference faqs- 2Silverlight difference faqs- 2
Silverlight difference faqs- 2
 
.NET Vs ASP.NET – Make the Right Choice for Your Next Project.pdf
.NET Vs ASP.NET – Make the Right Choice for Your Next Project.pdf.NET Vs ASP.NET – Make the Right Choice for Your Next Project.pdf
.NET Vs ASP.NET – Make the Right Choice for Your Next Project.pdf
 
Automatic answer checker
Automatic answer checkerAutomatic answer checker
Automatic answer checker
 
12_Data_Storage_Part_2.pptx
12_Data_Storage_Part_2.pptx12_Data_Storage_Part_2.pptx
12_Data_Storage_Part_2.pptx
 
Entity Core with Core Microservices.pptx
Entity Core with Core Microservices.pptxEntity Core with Core Microservices.pptx
Entity Core with Core Microservices.pptx
 

Recently uploaded

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
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...Miguel Araújo
 
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 educationjfdjdjcjdnsjd
 
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 DiscoveryTrustArc
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
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...Martijn de Jong
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
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.pdfsudhanshuwaghmare1
 
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?Antenna Manufacturer Coco
 
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 CVKhem
 
[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
 
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, Adobeapidays
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
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 2024Rafal Los
 
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...Drew Madelung
 

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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...
 
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
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
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...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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
 
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?
 
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
 
[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
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
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
 
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...
 

Entity Framework

  • 1. When was Entity Framework Released? 1. The first version of Entity Framework 3.5 was released along with Visual Studio 2008 SP1 and .NET 3.5 SP1. 2. The second version (also the currentversion) of Entity Framework i.e. 4.0 was released along with VS 2010 and .NET 4.0. (Diagramtaken fromMSDN)  Before the release of Entity framework 3.5,thereweremany database access technologies like DAO(Data Access Objects),RDO(RemoteData Objects), then ADO (ActiveX Data Objects) and then finally ADO.NET.  Although with ADO.NETworking with the DataSet and DataReader has served our data access needs but a developer needs to spend a lot of time being concerned with the details of the schema, trying to keep up with database schema changes and doing redundanttasks while interacting with the database, over and over again. What is Entity Framework? 1. The ADO.NETEntity Framework (EF) is an Object/Relational mapping (ORM) framework and is a set of technologies in ADO.NET, for developing applications that interacts with data.
  • 2. 2. ADO.NET developer spends a lot of time keeping up with the database changes whereas EF provides a mapping from the relational database schema to the objects and offers an abstraction of ADO.NET. 3. So with EF, you can define Entity classes that are independent of a database structure and then map them to the tables and associations of the database. 4. Since we are now working with Entities which have their own schema, we are shielded from the changes in the database. The object context keeps tabs on the entities that are changed. 5. In simple words, with the Entity Framework, you are architecting, designing and developing at a conceptual level. You are no more worried about the ‘specific details’ of communicating with the database and switching from one relational database to the other is also possible with EF, without much efforts. 6. The Entity Framework’sORMimplementation provides many more services like change tracking, identity resolution, lazy loading, and query translation so that developers can focus on their application-specific business logic rather than the data access fundamentals. To view more details about change tracking, identity resolution, lazy loading, and query translation just visit the below link: http://www.develop.com/entityframework4 7. Itbasically generates business objects and entities according to the database tables and provides the mechanismfor:  Performing basic CRUD (Create, Read, Update, Delete) operations.  Easily managing "1 to 1", "1 to many", and "many to many" relationships.  Ability to haveinheritance relationships between entities.
  • 3. What is the role of ADO.NET now?  EF was not released with the intension to replace ADO.NET.  It is in fact an enhancement to ADO.NET and helps eliminate the gap between the application and the database.  Behind the scene, EF uses ADO.NET classes, but the details are abstracted from you.  EF provides a shift from Database-oriented (DataReader, DataSet) to Model-oriented development.  So instead of focusing on a Database, a developer focuses on the Entity that represents the Business Model of the application. Is EF an alternative to ADO.NET? the answer would be "yes and no". Yes because the developer will not be writing ADO.NET methods and classes for performing data operations and NO because this model is actually written on top of ADO.NET, meaning under this framework, we are still using ADO.NET.
  • 4. The Detailed Folder/File structure of EF : There are mainly 3 files in EF listed Below:  CSDL- Conceptual schema definition language.  SSDL - Storeschema definition language.  MSL - Mapping specification language. These are XML-based languages that respectively describethe conceptual model, storagemodel, and the mapping between these models. In an Entity Framework application, model and mapping metadata are loaded fromthree files with extensions .csdl, .ssdl, and .msl. When are they generated? The Entity Data Model Designer (Entity Designer) stores model and mapping information in an .edmx file at design time. At build time the Entity Designer uses the information in an .edmx file to create the .csdl, .ssdl, and .msl files that are needed by the Entity Framework atruntime. Cpecial EF Folders:
  • 5. Where are they located? By default, they included in the binary file of output under bin folder. You are not able see the physicalfiles. But you can also output CSDL, SSDL, and MSL Files as saparated files . Here is how to make this happen. You will find these files at below location:
  • 6. There are mainly three approaches to create .edmx in the project 1. DatabaseFirstApproach 2. Model First Approach 3. Code FirstApproach