SlideShare a Scribd company logo
Entity Framework 4.0
Tamer El-shahat
Expert People Establishment
An Introduction
Agenda
 What is Entity Framework?
 Entity Framework Sample.
 Why Entity Framework?
 Can we use Entity Framework to build n-Tier Application?
 Summary.
What isEntityFramework?
 The Microsoft® ADO.NET Entity Framework is an Object/Relational
Mapping (ORM) framework that enables developers to work with
relational data as domain-specific objects.
 Eliminating the need for most of the data access plumbing code that
developers usually need to write.
What isEntityFramework?
 The Entity Framework’s ORM implementation provides 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.
 Entity Framework vs. traditional ADO.Net
Entity Framework vs. LINQ to SQL
Entity Framework vs. nHibernate
Agenda
 What is Entity Framework?
 Entity Framework Sample.
 Why Entity Framework?
 Can we use Entity Framework to build n-Tier Application?
 Summary.
EntityFrameworkSample.
 DEMO
EDM–EntityDataModel
 Invented by Dr. Peter Chen (1970s) and named ERM (Entity
Relationship Model)
 ERM
• Conceptual Layer.
• Mapping Layer.
• Storage Layer.
 Now: EDM in Entity Framework
Agenda
 What is Entity Framework?
 Entity Framework Sample.
 Why Entity Framework?
 Can we use Entity Framework to build n-Tier Application?
 Summary.
WhyEntityFramework?
 Works with a variety of database servers (including Microsoft SQL Server,
Oracle, and DB2).
 Includes a rich mapping engine that can handle real-world database schemas and
works well with stored procedures.
 Provides integrated Visual Studio tools to visually create entity models and to
auto-generate models from an existing database. New databases can be deployed
from a model, which can also be hand-edited for full control.
 Provides a Code First experience to create entity models using code. Code First
can map to an existing database or generate a database from the model.
WhyEntityFramework?
 Integrates well into all the .NET application programming models including
ASP.NET, Windows Presentation Foundation (WPF), Windows Communication
Foundation (WCF), and WCF Data Services (formerly ADO.NET Data
Services).
 Reduced development time: the framework provides the core data access
capabilities so developers can concentrate on application logic.
 Language-Integrated Query support (called LINQ to Entities) provides
IntelliSense and compile-time syntax validation for writing queries against a
conceptual model.
WhyEntityFramework?
 Developers can work in terms of a more application-centric object model,
including types with inheritance, complex members, and relationships. In .NET
Framework 4, the Entity Framework also supports Persistence Ignorance
through Plain Old CLR Objects (POCO) entities.
 Applications are freed from hard-coded dependencies on a particular data
engine or storage schema by supporting a conceptual model that is independent
of the physical/storage model.
 Mappings between the object model and the storage-specific schema can change
without changing the application code.
Agenda
 What is Entity Framework?
 Entity Framework Sample.
 Why Entity Framework?
 Can we use Entity Framework to build n-Tier Application?
 Q & A.
CanweuseEntityFrameworktobuildn-TierApplication?
 Yes, Using POCO entities and proxies.
 In Our 3-Tier, POCO entities could be placed in Global Project [DATA
LAYER], Entity Data Model (.EDM) could be placed in DataAccess Project
[DAL LAYER].
Summary
Q & A
Thank You
Refrences
 http://blogs.msdn.com/b/dsimmons/archive/2008/05/17/why-use-the-
entity-framework.aspx
 http://msdn.microsoft.com/en-us/magazine/cc700340.aspx
 http://blogs.msdn.com/b/adonet/archive/2009/06/16/using-repository-
and-unit-of-work-patterns-with-entity-framework-4-0.aspx
 http://blogs.msdn.com/b/adonet/archive/2010/01/25/walkthrough-poco-
template-for-the-entity-framework.aspx

More Related Content

What's hot

Entity Framework v2 Best Practices
Entity Framework v2 Best PracticesEntity Framework v2 Best Practices
Entity Framework v2 Best Practices
Andri Yadi
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overview
Eyal Vardi
 
Entity Framework - Entity Data Model (edm)
Entity Framework - Entity Data Model (edm)Entity Framework - Entity Data Model (edm)
Entity Framework - Entity Data Model (edm)
Eyal Vardi
 
Introducing Entity Framework 4.0
Introducing Entity Framework 4.0Introducing Entity Framework 4.0
Introducing Entity Framework 4.0
Bishoy Demian
 
Introducing the Entity Framework
Introducing the Entity FrameworkIntroducing the Entity Framework
Introducing the Entity Framework
LearnNowOnline
 
Core Public Event Vocabulary - italian Application profile
Core Public Event Vocabulary - italian Application profileCore Public Event Vocabulary - italian Application profile
Core Public Event Vocabulary - italian Application profile
Giorgia Lodi
 
Coreon - Making Sure IoT Devices Understand Each Other!
Coreon - Making Sure IoT Devices Understand Each Other!Coreon - Making Sure IoT Devices Understand Each Other!
Coreon - Making Sure IoT Devices Understand Each Other!
Jochen Hummel
 
Entity Framework - Queries
Entity Framework -  QueriesEntity Framework -  Queries
Entity Framework - Queries
Eyal Vardi
 
Interactive Financial Exchange (IFX)
Interactive Financial Exchange (IFX)Interactive Financial Exchange (IFX)
Interactive Financial Exchange (IFX)
Pratheeban Rajendran
 
Learn Entity Framework in a day with Code First, Model First and Database First
Learn Entity Framework in a day with Code First, Model First and Database FirstLearn Entity Framework in a day with Code First, Model First and Database First
Learn Entity Framework in a day with Code First, Model First and Database First
Jibran Rasheed Khan
 
ITEA2-ModelWriter Project
ITEA2-ModelWriter ProjectITEA2-ModelWriter Project
ITEA2-ModelWriter Project
Ferhat Erata
 
Mets2011 dlf lightning ppt
Mets2011 dlf lightning pptMets2011 dlf lightning ppt
Mets2011 dlf lightning pptBrian Tingle
 
Object Relational Mapping In Real World Applications
Object Relational Mapping In Real World ApplicationsObject Relational Mapping In Real World Applications
Object Relational Mapping In Real World Applications
PhilWinstanley
 
Muruca
MurucaMuruca
Evolutionary architecture: evolving even the language
Evolutionary architecture: evolving even the languageEvolutionary architecture: evolving even the language
Evolutionary architecture: evolving even the language
Luram Archanjo
 
Muruca at DiXiT Convention 1: Technology, Software, Standards
Muruca at DiXiT Convention 1: Technology, Software, StandardsMuruca at DiXiT Convention 1: Technology, Software, Standards
Muruca at DiXiT Convention 1: Technology, Software, Standards
Net7
 
Entity Framework - Object Services
Entity Framework -  Object ServicesEntity Framework -  Object Services
Entity Framework - Object Services
Eyal Vardi
 
LincDoc Enterprise Edition brochure
LincDoc Enterprise Edition brochureLincDoc Enterprise Edition brochure
LincDoc Enterprise Edition brochure
Dan O'Leary
 
Semantic Web for Enterprise Architecture
Semantic Web for Enterprise ArchitectureSemantic Web for Enterprise Architecture
Semantic Web for Enterprise ArchitectureJames Lapalme
 

What's hot (19)

Entity Framework v2 Best Practices
Entity Framework v2 Best PracticesEntity Framework v2 Best Practices
Entity Framework v2 Best Practices
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overview
 
Entity Framework - Entity Data Model (edm)
Entity Framework - Entity Data Model (edm)Entity Framework - Entity Data Model (edm)
Entity Framework - Entity Data Model (edm)
 
Introducing Entity Framework 4.0
Introducing Entity Framework 4.0Introducing Entity Framework 4.0
Introducing Entity Framework 4.0
 
Introducing the Entity Framework
Introducing the Entity FrameworkIntroducing the Entity Framework
Introducing the Entity Framework
 
Core Public Event Vocabulary - italian Application profile
Core Public Event Vocabulary - italian Application profileCore Public Event Vocabulary - italian Application profile
Core Public Event Vocabulary - italian Application profile
 
Coreon - Making Sure IoT Devices Understand Each Other!
Coreon - Making Sure IoT Devices Understand Each Other!Coreon - Making Sure IoT Devices Understand Each Other!
Coreon - Making Sure IoT Devices Understand Each Other!
 
Entity Framework - Queries
Entity Framework -  QueriesEntity Framework -  Queries
Entity Framework - Queries
 
Interactive Financial Exchange (IFX)
Interactive Financial Exchange (IFX)Interactive Financial Exchange (IFX)
Interactive Financial Exchange (IFX)
 
Learn Entity Framework in a day with Code First, Model First and Database First
Learn Entity Framework in a day with Code First, Model First and Database FirstLearn Entity Framework in a day with Code First, Model First and Database First
Learn Entity Framework in a day with Code First, Model First and Database First
 
ITEA2-ModelWriter Project
ITEA2-ModelWriter ProjectITEA2-ModelWriter Project
ITEA2-ModelWriter Project
 
Mets2011 dlf lightning ppt
Mets2011 dlf lightning pptMets2011 dlf lightning ppt
Mets2011 dlf lightning ppt
 
Object Relational Mapping In Real World Applications
Object Relational Mapping In Real World ApplicationsObject Relational Mapping In Real World Applications
Object Relational Mapping In Real World Applications
 
Muruca
MurucaMuruca
Muruca
 
Evolutionary architecture: evolving even the language
Evolutionary architecture: evolving even the languageEvolutionary architecture: evolving even the language
Evolutionary architecture: evolving even the language
 
Muruca at DiXiT Convention 1: Technology, Software, Standards
Muruca at DiXiT Convention 1: Technology, Software, StandardsMuruca at DiXiT Convention 1: Technology, Software, Standards
Muruca at DiXiT Convention 1: Technology, Software, Standards
 
Entity Framework - Object Services
Entity Framework -  Object ServicesEntity Framework -  Object Services
Entity Framework - Object Services
 
LincDoc Enterprise Edition brochure
LincDoc Enterprise Edition brochureLincDoc Enterprise Edition brochure
LincDoc Enterprise Edition brochure
 
Semantic Web for Enterprise Architecture
Semantic Web for Enterprise ArchitectureSemantic Web for Enterprise Architecture
Semantic Web for Enterprise Architecture
 

Viewers also liked

Migliora l'efficienza della tua cella frigo
Migliora l'efficienza della tua cella frigoMigliora l'efficienza della tua cella frigo
Migliora l'efficienza della tua cella frigoDavide Margelli
 
Silverlight
SilverlightSilverlight
Silverlight
Tamer Elshahat
 
Appency Mobile App Marketing (iPhone, Android, Windows, Blackberry)
Appency Mobile App Marketing (iPhone, Android, Windows, Blackberry)Appency Mobile App Marketing (iPhone, Android, Windows, Blackberry)
Appency Mobile App Marketing (iPhone, Android, Windows, Blackberry)
AppencyPR
 
Budgeting for the future :)
Budgeting for the future :)Budgeting for the future :)
Budgeting for the future :)
circlechill
 
о любви
о любвио любви
о любвиmukcbs55
 
Darden school of business elective encourages entrepreneurship
Darden school of business elective encourages entrepreneurshipDarden school of business elective encourages entrepreneurship
Darden school of business elective encourages entrepreneurship
Bill Gray Ogilvy
 
Presentacion diapositivas
Presentacion diapositivasPresentacion diapositivas
Presentacion diapositivas6259874
 
литературная карта
литературная карталитературная карта
литературная картаmukcbs55
 
Careers In English Literature
Careers In English LiteratureCareers In English Literature
Careers In English Literature
Bill Gray Ogilvy
 
Presentacion diapositivas
Presentacion diapositivasPresentacion diapositivas
Presentacion diapositivas6259874
 
C 70 card_machine_brochure_2810-v2_en_original__79023 2
C 70 card_machine_brochure_2810-v2_en_original__79023 2C 70 card_machine_brochure_2810-v2_en_original__79023 2
C 70 card_machine_brochure_2810-v2_en_original__79023 2
aqeel ahmed
 
Vrste saobracaja
Vrste saobracajaVrste saobracaja
Vrste saobracaja
oslic
 

Viewers also liked (17)

Ltr
LtrLtr
Ltr
 
Migliora l'efficienza della tua cella frigo
Migliora l'efficienza della tua cella frigoMigliora l'efficienza della tua cella frigo
Migliora l'efficienza della tua cella frigo
 
Silverlight
SilverlightSilverlight
Silverlight
 
Appency Mobile App Marketing (iPhone, Android, Windows, Blackberry)
Appency Mobile App Marketing (iPhone, Android, Windows, Blackberry)Appency Mobile App Marketing (iPhone, Android, Windows, Blackberry)
Appency Mobile App Marketing (iPhone, Android, Windows, Blackberry)
 
Is numeric
Is numericIs numeric
Is numeric
 
Budgeting for the future :)
Budgeting for the future :)Budgeting for the future :)
Budgeting for the future :)
 
о любви
о любвио любви
о любви
 
Darden school of business elective encourages entrepreneurship
Darden school of business elective encourages entrepreneurshipDarden school of business elective encourages entrepreneurship
Darden school of business elective encourages entrepreneurship
 
Presentacion diapositivas
Presentacion diapositivasPresentacion diapositivas
Presentacion diapositivas
 
литературная карта
литературная карталитературная карта
литературная карта
 
Hello world
Hello worldHello world
Hello world
 
Careers In English Literature
Careers In English LiteratureCareers In English Literature
Careers In English Literature
 
Presentacion diapositivas
Presentacion diapositivasPresentacion diapositivas
Presentacion diapositivas
 
C 70 card_machine_brochure_2810-v2_en_original__79023 2
C 70 card_machine_brochure_2810-v2_en_original__79023 2C 70 card_machine_brochure_2810-v2_en_original__79023 2
C 70 card_machine_brochure_2810-v2_en_original__79023 2
 
Loops
LoopsLoops
Loops
 
Vrste saobracaja
Vrste saobracajaVrste saobracaja
Vrste saobracaja
 
Flow charts
Flow chartsFlow charts
Flow charts
 

Similar to Entity framework

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
Enea Gabriel
 
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
David McCarter
 
Win net presentacion [2005]
Win net presentacion [2005]Win net presentacion [2005]
Win net presentacion [2005]Raul Soto
 
Entity Framework 4
Entity Framework 4Entity Framework 4
Entity Framework 4
Stefano Paluello
 
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
 
Entity Core with Core Microservices.pptx
Entity Core with Core Microservices.pptxEntity Core with Core Microservices.pptx
Entity Core with Core Microservices.pptx
Knoldus Inc.
 
ADO.NET Entity Framework
ADO.NET Entity FrameworkADO.NET Entity Framework
ADO.NET Entity Framework
Hasnain Iqbal
 
Entity Framework Core 1.0
Entity Framework Core 1.0Entity Framework Core 1.0
Entity Framework Core 1.0
Senthil Kumar
 
Actively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net DeveloperActively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net Developer
Karthik Reddy
 
Actively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net DeveloperActively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net Developer
Karthik Reddy
 
Microsoft Entity Framework
Microsoft Entity FrameworkMicrosoft Entity Framework
Microsoft Entity Framework
Mahmoud Tolba
 
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
Eric Nelson
 
Ado.net entity framework_4.0
Ado.net entity framework_4.0Ado.net entity framework_4.0
Ado.net entity framework_4.0Rishu Mehra
 
ADO.NET Entity Framework
ADO.NET Entity FrameworkADO.NET Entity Framework
ADO.NET Entity FrameworkDoncho Minkov
 
10265 developing data access solutions with microsoft visual studio 2010
10265 developing data access solutions with microsoft visual studio 201010265 developing data access solutions with microsoft visual studio 2010
10265 developing data access solutions with microsoft visual studio 2010bestip
 
How .NET Framework Supports Cost-Effective Application Development
How .NET Framework Supports Cost-Effective Application DevelopmentHow .NET Framework Supports Cost-Effective Application Development
How .NET Framework Supports Cost-Effective Application Development
Sara Suarez
 

Similar to Entity framework (20)

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
 
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
 
Win net presentacion [2005]
Win net presentacion [2005]Win net presentacion [2005]
Win net presentacion [2005]
 
Entity Framework
Entity FrameworkEntity Framework
Entity Framework
 
Entity Framework 4
Entity Framework 4Entity Framework 4
Entity Framework 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)
 
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)
 
dot NET Framework
dot NET Frameworkdot NET Framework
dot NET Framework
 
Entity Core with Core Microservices.pptx
Entity Core with Core Microservices.pptxEntity Core with Core Microservices.pptx
Entity Core with Core Microservices.pptx
 
ADO.NET Entity Framework
ADO.NET Entity FrameworkADO.NET Entity Framework
ADO.NET Entity Framework
 
Entity Framework Core 1.0
Entity Framework Core 1.0Entity Framework Core 1.0
Entity Framework Core 1.0
 
Actively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net DeveloperActively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net Developer
 
Actively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net DeveloperActively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net Developer
 
Microsoft Entity Framework
Microsoft Entity FrameworkMicrosoft Entity Framework
Microsoft Entity Framework
 
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
 
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 Entity Framework
ADO.NET Entity FrameworkADO.NET Entity Framework
ADO.NET Entity Framework
 
soa1.ppt
soa1.pptsoa1.ppt
soa1.ppt
 
10265 developing data access solutions with microsoft visual studio 2010
10265 developing data access solutions with microsoft visual studio 201010265 developing data access solutions with microsoft visual studio 2010
10265 developing data access solutions with microsoft visual studio 2010
 
How .NET Framework Supports Cost-Effective Application Development
How .NET Framework Supports Cost-Effective Application DevelopmentHow .NET Framework Supports Cost-Effective Application Development
How .NET Framework Supports Cost-Effective Application Development
 

Recently uploaded

Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Graphic Design Crash Course for beginners
Graphic Design Crash Course for beginnersGraphic Design Crash Course for beginners
Graphic Design Crash Course for beginners
e20449
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
WSO2
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Anthony Dahanne
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 

Recently uploaded (20)

Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Graphic Design Crash Course for beginners
Graphic Design Crash Course for beginnersGraphic Design Crash Course for beginners
Graphic Design Crash Course for beginners
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 

Entity framework

  • 1. Entity Framework 4.0 Tamer El-shahat Expert People Establishment An Introduction
  • 2. Agenda  What is Entity Framework?  Entity Framework Sample.  Why Entity Framework?  Can we use Entity Framework to build n-Tier Application?  Summary.
  • 3. What isEntityFramework?  The Microsoft® ADO.NET Entity Framework is an Object/Relational Mapping (ORM) framework that enables developers to work with relational data as domain-specific objects.  Eliminating the need for most of the data access plumbing code that developers usually need to write.
  • 4. What isEntityFramework?  The Entity Framework’s ORM implementation provides 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.  Entity Framework vs. traditional ADO.Net Entity Framework vs. LINQ to SQL Entity Framework vs. nHibernate
  • 5. Agenda  What is Entity Framework?  Entity Framework Sample.  Why Entity Framework?  Can we use Entity Framework to build n-Tier Application?  Summary.
  • 7. EDM–EntityDataModel  Invented by Dr. Peter Chen (1970s) and named ERM (Entity Relationship Model)  ERM • Conceptual Layer. • Mapping Layer. • Storage Layer.  Now: EDM in Entity Framework
  • 8. Agenda  What is Entity Framework?  Entity Framework Sample.  Why Entity Framework?  Can we use Entity Framework to build n-Tier Application?  Summary.
  • 9. WhyEntityFramework?  Works with a variety of database servers (including Microsoft SQL Server, Oracle, and DB2).  Includes a rich mapping engine that can handle real-world database schemas and works well with stored procedures.  Provides integrated Visual Studio tools to visually create entity models and to auto-generate models from an existing database. New databases can be deployed from a model, which can also be hand-edited for full control.  Provides a Code First experience to create entity models using code. Code First can map to an existing database or generate a database from the model.
  • 10. WhyEntityFramework?  Integrates well into all the .NET application programming models including ASP.NET, Windows Presentation Foundation (WPF), Windows Communication Foundation (WCF), and WCF Data Services (formerly ADO.NET Data Services).  Reduced development time: the framework provides the core data access capabilities so developers can concentrate on application logic.  Language-Integrated Query support (called LINQ to Entities) provides IntelliSense and compile-time syntax validation for writing queries against a conceptual model.
  • 11. WhyEntityFramework?  Developers can work in terms of a more application-centric object model, including types with inheritance, complex members, and relationships. In .NET Framework 4, the Entity Framework also supports Persistence Ignorance through Plain Old CLR Objects (POCO) entities.  Applications are freed from hard-coded dependencies on a particular data engine or storage schema by supporting a conceptual model that is independent of the physical/storage model.  Mappings between the object model and the storage-specific schema can change without changing the application code.
  • 12. Agenda  What is Entity Framework?  Entity Framework Sample.  Why Entity Framework?  Can we use Entity Framework to build n-Tier Application?  Q & A.
  • 13. CanweuseEntityFrameworktobuildn-TierApplication?  Yes, Using POCO entities and proxies.  In Our 3-Tier, POCO entities could be placed in Global Project [DATA LAYER], Entity Data Model (.EDM) could be placed in DataAccess Project [DAL LAYER].
  • 15. Q & A
  • 17. Refrences  http://blogs.msdn.com/b/dsimmons/archive/2008/05/17/why-use-the- entity-framework.aspx  http://msdn.microsoft.com/en-us/magazine/cc700340.aspx  http://blogs.msdn.com/b/adonet/archive/2009/06/16/using-repository- and-unit-of-work-patterns-with-entity-framework-4-0.aspx  http://blogs.msdn.com/b/adonet/archive/2010/01/25/walkthrough-poco- template-for-the-entity-framework.aspx

Editor's Notes

  1. L2s 1 - one to one relation but EF support many relation (table to more classes , more table to one class) 2- only sql but EF support Oracle, DB2, Informix, MySQL, Postgres, and more EF vs. nhibernate - the Entity Data Model (EDM) -The EF was specifically structured to separate the process of mapping queries/shaping results from building objects and tracking changes. - easier to create a conceptual model which can be Used in other Microsoft products: WCF Data services, Azure Table Storage, Sharepoint 2010, SQL Server Reporting Services and PowerPivot for Excel, … it's that the EF is not just an ORM--it's the first step in a much larger vision of an entity-aware data platform. -http://blogs.msdn.com/b/dsimmons/archive/2008/05/17/why-use-the-entity-framework.aspx - Database and ORM (!!!) vendors supporting it (IBM, OpenLink, DevForce, LLBLGen …)
  2. - Create EDM File , explain some properties , add item and display it Explain mapping - change schema – edit generated classes – edit by .edm T4 templates Change tracker of objects.