SlideShare a Scribd company logo
1 of 11
Deep Dive into
Entity Framework 6
Diego Vega
Developer Lead
Microsoft
Deep Dive into EF6 | Agenda



          Runtime
  Open       &                Release
                      Demo              Post EF6
 Source   Designer            details
          features
EF Overview | What is EF?


 • Recommended technology to connect .NET            Microsoft’s
   applications to databases                         Object/Relational
 • LINQ against disparate relational databases       Mapper

 • Make .NET & Windows Azure the best platform for
   data centered apps                                Product goals
 • Be the most productive data access API
EF6 | Open Source Development

Look mom, it’s Open Source!!!
   Git repository at entityframework.codeplex.com
   Code under Apache 2.0 license
   Nightly builds available
   Accepting contributions
     Only EF team has commit rights to repo
     Contributions go through same code review process as internal changes
     13 pull requests, 9 accepted
 Currently working to add designer to out Git repo
Only affects how we develop, not how we ship
 Same Microsoft branding, license, quality and support at RTM
EF6 Runtime | Fully Out-Of-Band

EF5 Runtime                             EF6 Runtime
 Core bits in .NET Framework            All classes in NuGet package
   In the GAC                             Core classes copied into new namespace
 Some bits in NuGet package               Most applications should just work with
  (DbContext, Code First, Migrations)       recompile, some namespace changes
                                           Providers, frameworks and tools typically
   Bin-deployable
                                            need more updates
Major features required .NET            All of enums, spatial, TVFs and
Framework Changes!                     EF5 performance
                                        improvements now work on
                                        .NET 4! 
EF6 Runtime | New Features

Async query & save                   Code First improvements
 .NET 4.5 Only                       Custom conventions
Connection resiliency (auto-retry)    CUD stored procedure mapping
Dependency resolution                 Migrations history table
                                       customization
Code-based configuration              Multiple contexts per database
Connection & transaction             More performance improvements
management in DbContext
EF6 Tooling Unification

             Model First & Database First
             (EF Designer)




             Code First – Existing Database
             (EF Power Tools)



     Code First – New Database (No
     Tooling)
Getting EF6
Updating existing applications
Code First Stored Procedure Mapping for CUD
Async Query and Save
Code-based configuration
Custom Code First Conventions
EF6 | Release Timeline

Alpha 3 of the runtime available now on NuGet
 Will keep shipping preview versions every 1 or 2 months
 Nightly builds available from NuGet feed on MyGet
EF 6 Tools preview within next couple of months
RTM
 In the box in Visual Studio vNext
 EF6 Runtime available on NuGet
     Works with VS2010/.NET 4 onwards
 Downloadable tooling update for Visual Studio 2012
Updates to runtime and designer can be shipped between VS releases
Post EF6 potential features - vote @
ef.mswish.net
EF for Windows Store Apps with         More flexible LINQ translation
SQLite for local data                   Implicit boundaries
 Also Windows Phone support?           Expression variables support
Batch updates                          Data caching (2nd level cache)
SQL generation improvements            First class DDD aggregates
More flexible mapping                  Disconnected graphs support
   Mapping to fields                  SQL Federations & Sharding
   Type conversions                   Micro-O/RM-like capabilities
   Shadow state
                                       Unique constraints
   Untyped objects
   Serializing to BLOB columns        Query hints
Lifecycle hooks                        ???
EF | Resources

Learn                            Follow us
 msdn.com/data/ef                  @efmagicunicorns
Contribute                          @divega
 entityframework.codeplex.com      facebook.com/efmagicunicorns
Vote                                blogs.msdn.com/adonet
 ef.mswish.net                     blogs.msdn.com/diego

More Related Content

What's hot

.Net framework
.Net framework.Net framework
.Net framework
Arun Pal
 
01 intro to programming in .net
01   intro to programming in .net01   intro to programming in .net
01 intro to programming in .net
Felisha Hosein
 
Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5
Jeff Blankenburg
 

What's hot (20)

Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version History
 
Top 10 php frameworks in 2021
Top 10 php frameworks in 2021Top 10 php frameworks in 2021
Top 10 php frameworks in 2021
 
Net framework
Net frameworkNet framework
Net framework
 
Getting Started with SQL Server Compact Edition 3.51
Getting Started with SQL Server Compact Edition 3.51Getting Started with SQL Server Compact Edition 3.51
Getting Started with SQL Server Compact Edition 3.51
 
.NET Standard - Introduction
.NET Standard - Introduction.NET Standard - Introduction
.NET Standard - Introduction
 
.Net Standard 2.0
.Net Standard 2.0.Net Standard 2.0
.Net Standard 2.0
 
.Net framework
.Net framework.Net framework
.Net framework
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
 
COBOL deployment to .NET or JVM
COBOL deployment to .NET or JVMCOBOL deployment to .NET or JVM
COBOL deployment to .NET or JVM
 
01 intro to programming in .net
01   intro to programming in .net01   intro to programming in .net
01 intro to programming in .net
 
6.origins genesis of .net technology
6.origins genesis of .net technology6.origins genesis of .net technology
6.origins genesis of .net technology
 
Microsoft .Net Framework
Microsoft .Net FrameworkMicrosoft .Net Framework
Microsoft .Net Framework
 
Overview of .Net Framework
Overview of .Net FrameworkOverview of .Net Framework
Overview of .Net Framework
 
Introduction of .net framework
Introduction of .net frameworkIntroduction of .net framework
Introduction of .net framework
 
.Net framework
.Net framework.Net framework
.Net framework
 
.Net framework
.Net framework.Net framework
.Net framework
 
DOT Net overview
DOT Net overviewDOT Net overview
DOT Net overview
 
Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5
 
Introduction to .NET Framework and C# (English)
Introduction to .NET Framework and C# (English)Introduction to .NET Framework and C# (English)
Introduction to .NET Framework and C# (English)
 

Similar to Deep Dive into Entity Framework 6.0

Asp.net Web Development.pdf
Asp.net Web Development.pdfAsp.net Web Development.pdf
Asp.net Web Development.pdf
Abanti Aazmin
 
What's new in Nuxeo 5.2? - Solutions Linux 2009
What's new in Nuxeo 5.2? - Solutions Linux 2009What's new in Nuxeo 5.2? - Solutions Linux 2009
What's new in Nuxeo 5.2? - Solutions Linux 2009
Stefane Fermigier
 

Similar to Deep Dive into Entity Framework 6.0 (20)

EF6 or EF Core? How Do I Choose?
EF6 or EF Core? How Do I Choose?EF6 or EF Core? How Do I Choose?
EF6 or EF Core? How Do I Choose?
 
Building data centric applications for web, desktop and mobile with Entity Fr...
Building data centric applications for web, desktop and mobile with Entity Fr...Building data centric applications for web, desktop and mobile with Entity Fr...
Building data centric applications for web, desktop and mobile with Entity Fr...
 
ASP.NET Core 101
ASP.NET Core 101ASP.NET Core 101
ASP.NET Core 101
 
EF Core (RC2)
EF Core (RC2)EF Core (RC2)
EF Core (RC2)
 
Leverage Entity Framework 7 in Business Application Design
Leverage Entity Framework 7 in Business Application Design Leverage Entity Framework 7 in Business Application Design
Leverage Entity Framework 7 in Business Application Design
 
The Nuxeo Way: leveraging open source to build a world-class ECM platform
The Nuxeo Way: leveraging open source to build a world-class ECM platformThe Nuxeo Way: leveraging open source to build a world-class ECM platform
The Nuxeo Way: leveraging open source to build a world-class ECM platform
 
Asp.net Web Development.pdf
Asp.net Web Development.pdfAsp.net Web Development.pdf
Asp.net Web Development.pdf
 
Dot Net Core
Dot Net CoreDot Net Core
Dot Net Core
 
.NET Innovations and Improvements
.NET Innovations and Improvements.NET Innovations and Improvements
.NET Innovations and Improvements
 
.NET Core, ASP.NET Core Course, Session 16
.NET Core, ASP.NET Core Course, Session 16.NET Core, ASP.NET Core Course, Session 16
.NET Core, ASP.NET Core Course, Session 16
 
C#: Past, Present and Future
C#: Past, Present and FutureC#: Past, Present and Future
C#: Past, Present and Future
 
Visual studio.net
Visual studio.netVisual studio.net
Visual studio.net
 
.Net Core - not your daddy's dotnet
.Net Core - not your daddy's dotnet.Net Core - not your daddy's dotnet
.Net Core - not your daddy's dotnet
 
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
 
.NET MeetUp Prague 2017 - Challenges of Managing CoreFX repo -- Karel Zikmund
.NET MeetUp Prague 2017 - Challenges of Managing CoreFX repo -- Karel Zikmund.NET MeetUp Prague 2017 - Challenges of Managing CoreFX repo -- Karel Zikmund
.NET MeetUp Prague 2017 - Challenges of Managing CoreFX repo -- Karel Zikmund
 
.NET MeetUp Brno - Challenges of Managing CoreFX repo -- Karel Zikmund
.NET MeetUp Brno - Challenges of Managing CoreFX repo -- Karel Zikmund.NET MeetUp Brno - Challenges of Managing CoreFX repo -- Karel Zikmund
.NET MeetUp Brno - Challenges of Managing CoreFX repo -- Karel Zikmund
 
Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...
Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...
Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...
 
.Net: Introduction, trends and future
.Net: Introduction, trends and future.Net: Introduction, trends and future
.Net: Introduction, trends and future
 
What’s new in Visual Studio 2012 & .NET 4.5
What’s new in Visual Studio 2012 & .NET 4.5What’s new in Visual Studio 2012 & .NET 4.5
What’s new in Visual Studio 2012 & .NET 4.5
 
What's new in Nuxeo 5.2? - Solutions Linux 2009
What's new in Nuxeo 5.2? - Solutions Linux 2009What's new in Nuxeo 5.2? - Solutions Linux 2009
What's new in Nuxeo 5.2? - Solutions Linux 2009
 

More from Microsoft Developer Network (MSDN) - Belgium and Luxembourg

More from Microsoft Developer Network (MSDN) - Belgium and Luxembourg (20)

Code in the Cloud - Ghent - 20 February 2015
Code in the Cloud - Ghent - 20 February 2015Code in the Cloud - Ghent - 20 February 2015
Code in the Cloud - Ghent - 20 February 2015
 
Executive Summit for ISV & Application builders - January 2015
Executive Summit for ISV & Application builders - January 2015Executive Summit for ISV & Application builders - January 2015
Executive Summit for ISV & Application builders - January 2015
 
Executive Summit for ISV & Application builders - Internet of Things
Executive Summit for ISV & Application builders - Internet of ThingsExecutive Summit for ISV & Application builders - Internet of Things
Executive Summit for ISV & Application builders - Internet of Things
 
Executive Summit for ISV & Application builders - January 2015
Executive Summit for ISV & Application builders - January 2015Executive Summit for ISV & Application builders - January 2015
Executive Summit for ISV & Application builders - January 2015
 
Code in the Cloud - December 8th 2014
Code in the Cloud - December 8th 2014Code in the Cloud - December 8th 2014
Code in the Cloud - December 8th 2014
 
Adam azure presentation
Adam   azure presentationAdam   azure presentation
Adam azure presentation
 
release management
release managementrelease management
release management
 
cloud value for application development
cloud value for application developmentcloud value for application development
cloud value for application development
 
Modern lifecycle management practices
Modern lifecycle management practicesModern lifecycle management practices
Modern lifecycle management practices
 
Belgian visual studio launch 2013
Belgian visual studio launch 2013Belgian visual studio launch 2013
Belgian visual studio launch 2013
 
Windows Azure Virtually Speaking
Windows Azure Virtually SpeakingWindows Azure Virtually Speaking
Windows Azure Virtually Speaking
 
Inside the Microsoft TechDays Belgium Apps
Inside the Microsoft TechDays Belgium AppsInside the Microsoft TechDays Belgium Apps
Inside the Microsoft TechDays Belgium Apps
 
TechDays 2013 Developer Keynote
TechDays 2013 Developer KeynoteTechDays 2013 Developer Keynote
TechDays 2013 Developer Keynote
 
Windows Phone 8 Security Deep Dive
Windows Phone 8 Security Deep DiveWindows Phone 8 Security Deep Dive
Windows Phone 8 Security Deep Dive
 
Applied MVVM in Windows 8 apps: not your typical MVVM session!
Applied MVVM in Windows 8 apps: not your typical MVVM session!Applied MVVM in Windows 8 apps: not your typical MVVM session!
Applied MVVM in Windows 8 apps: not your typical MVVM session!
 
Building SPA’s (Single Page App) with Backbone.js
Building SPA’s (Single Page App) with Backbone.jsBuilding SPA’s (Single Page App) with Backbone.js
Building SPA’s (Single Page App) with Backbone.js
 
Deep Dive and Best Practices for Windows Azure Storage Services
Deep Dive and Best Practices for Windows Azure Storage ServicesDeep Dive and Best Practices for Windows Azure Storage Services
Deep Dive and Best Practices for Windows Azure Storage Services
 
Bart De Smet Unplugged
Bart De Smet UnpluggedBart De Smet Unplugged
Bart De Smet Unplugged
 
Putting the Microsoft Design Language to work
Putting the Microsoft Design Language to workPutting the Microsoft Design Language to work
Putting the Microsoft Design Language to work
 
Cloud enable your Windows Store Apps with Mobile Services
Cloud enable your Windows Store Apps with Mobile ServicesCloud enable your Windows Store Apps with Mobile Services
Cloud enable your Windows Store Apps with Mobile Services
 

Deep Dive into Entity Framework 6.0

  • 1. Deep Dive into Entity Framework 6 Diego Vega Developer Lead Microsoft
  • 2. Deep Dive into EF6 | Agenda Runtime Open & Release Demo Post EF6 Source Designer details features
  • 3. EF Overview | What is EF? • Recommended technology to connect .NET Microsoft’s applications to databases Object/Relational • LINQ against disparate relational databases Mapper • Make .NET & Windows Azure the best platform for data centered apps Product goals • Be the most productive data access API
  • 4. EF6 | Open Source Development Look mom, it’s Open Source!!!  Git repository at entityframework.codeplex.com  Code under Apache 2.0 license  Nightly builds available  Accepting contributions  Only EF team has commit rights to repo  Contributions go through same code review process as internal changes  13 pull requests, 9 accepted  Currently working to add designer to out Git repo Only affects how we develop, not how we ship  Same Microsoft branding, license, quality and support at RTM
  • 5. EF6 Runtime | Fully Out-Of-Band EF5 Runtime EF6 Runtime  Core bits in .NET Framework  All classes in NuGet package  In the GAC  Core classes copied into new namespace  Some bits in NuGet package  Most applications should just work with (DbContext, Code First, Migrations) recompile, some namespace changes  Providers, frameworks and tools typically  Bin-deployable need more updates Major features required .NET All of enums, spatial, TVFs and Framework Changes!  EF5 performance improvements now work on .NET 4! 
  • 6. EF6 Runtime | New Features Async query & save Code First improvements  .NET 4.5 Only  Custom conventions Connection resiliency (auto-retry)  CUD stored procedure mapping Dependency resolution  Migrations history table customization Code-based configuration  Multiple contexts per database Connection & transaction More performance improvements management in DbContext
  • 7. EF6 Tooling Unification Model First & Database First (EF Designer) Code First – Existing Database (EF Power Tools) Code First – New Database (No Tooling)
  • 8. Getting EF6 Updating existing applications Code First Stored Procedure Mapping for CUD Async Query and Save Code-based configuration Custom Code First Conventions
  • 9. EF6 | Release Timeline Alpha 3 of the runtime available now on NuGet  Will keep shipping preview versions every 1 or 2 months  Nightly builds available from NuGet feed on MyGet EF 6 Tools preview within next couple of months RTM  In the box in Visual Studio vNext  EF6 Runtime available on NuGet  Works with VS2010/.NET 4 onwards  Downloadable tooling update for Visual Studio 2012 Updates to runtime and designer can be shipped between VS releases
  • 10. Post EF6 potential features - vote @ ef.mswish.net EF for Windows Store Apps with More flexible LINQ translation SQLite for local data  Implicit boundaries  Also Windows Phone support?  Expression variables support Batch updates Data caching (2nd level cache) SQL generation improvements First class DDD aggregates More flexible mapping Disconnected graphs support  Mapping to fields SQL Federations & Sharding  Type conversions Micro-O/RM-like capabilities  Shadow state Unique constraints  Untyped objects  Serializing to BLOB columns Query hints Lifecycle hooks ???
  • 11. EF | Resources Learn Follow us  msdn.com/data/ef  @efmagicunicorns Contribute  @divega  entityframework.codeplex.com  facebook.com/efmagicunicorns Vote  blogs.msdn.com/adonet  ef.mswish.net  blogs.msdn.com/diego