1 / 20

Entity Framework

Entity Framework. Rowan Miller Program Manager Microsoft. What to expect in this session. Mix of level 100-300 content Mostly demos EF6 and EF7 Some previously seen content, some new stuff. Agenda. Where are we at? A quick look at recent and in-flight releases Demos EF6 in action

sidone
Download Presentation

Entity Framework

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Entity Framework Rowan Miller Program Manager Microsoft

  2. What to expect in this session Mix of level 100-300 content Mostly demos EF6 and EF7 Some previously seen content, some new stuff

  3. Agenda Where are we at? A quick look at recent and in-flight releases Demos EF6 in action Where are we going? What EF7 is all about Demos EF7 in action

  4. Where are we at?

  5. Versions Entity Framework 7 Runtime out-of-band (NuGet) Tooling out-of-band (Microsoft Download Center) Latest version “chained in” to new Visual Studio releases Entity Framework 6.1.2 Entity Framework 6 -> 6.1.1 Entity Framework 5 Core runtime in .NET Framework Newer runtime pieces out-of-band (NuGet) Tooling in Visual Studio Entity Framework 4.1 -> 4.3 Entity Framework 4 Runtime in .NET Framework Tooling in Visual Studio Entity Framework 3.5 SP1

  6. Recent Releases EF6 Lots of features and bug fixes Ability to ship all of EF out-of-band 23 community contributions EF6.1 A few smaller features 120+ bug fixes 17 community contributions EF6.1.1 57 bug fixes/small features 12 community contributions

  7. Demos | EF6 in action

  8. Demo Reverse Engineer Code First + Custom Code Generation

  9. Demo Testing with EF6

  10. Where are we going?

  11. Entity Framework 7 EF6 supported scenarios Full .NET Framework (ASP.NET & traditional desktop applications) Relational databases EF7 enabling new scenarios New platforms (Windows Phone, Windows Store, etc.) New data stores (Non-relational)

  12. Challenges with current code base Long history going back to the WinFS days Extensive use of older APIs and design patterns Heavy use of APIs not available on all platforms Lots of seldom used code/features Monolithic implementation Unintuitive behaviors woven throughout code base Not optimized for density/devices High memory footprint Tight coupling to relational concepts

  13. What we are doing Lightweight, extensible version of EF Just the commonly used features (and many new features) Built using modern design patterns DbContext and code-based modelling only Not a micro-O/RM Still supports LINQ, change tracking, unit of work, etc. Support relational & non-relational stores Not a high level abstraction over all data stores Provide high level services that are useful on all/most stores Non-common concerns handled by provider extensions

  14. Design principles Keep EF6 patterns Only break from existing patterns where there is good reason Pay per play Simpler apps will require fewer resources Low memory footprint Extensible Simple high level API over building blocks Easy to replace/extend individual building blocks as needed Sensible defaults, less magic Only support magic where it supports long term success

  15. What about EF6 apps? You don’t have to upgrade EF6 is still supported Updates to EF6 will continue (we’ve done EF6.1 and EF6.1.1 in parallel with EF7) Not all EF6 features will be in 7.0.0 We don’t expect everyone to be able to upgrade immediately Upgrade is a key scenario Same concepts, same patterns Some code changes will be needed

  16. Get involved in EF7 Open source http://github.com/aspnet/EntityFramework Nightly builds now available See GitHub Wiki for details

  17. Demos | EF7 sneak peek

  18. Demo New EF, new places Windows Phone SQLite

  19. Demo New EF, old places WinForms Client/Server query evaluation In-memory data store Azure Table Storage

  20. Links These links and more - bit.ly/EFdotnetConf (case sensitive) Team blog – blogs.msdn.com/adonet Documentation – msdn.com/data/ef EF6 Project – EntityFramework.codeplex.com EF7 Project – github.com/aspnet/EntityFramework Twitter – @efmagicunicorns Facebook – facebook.com/efmagicunicorns

More Related