Download presentation
Presentation is loading. Please wait.
Published bySylvia Ross Modified over 9 years ago
2
Entity Framework 7: What’s New? Ricardo Peres Technical Evangelist at Simplifydigital. Microsoft MVP. @RJPeres75
3
</WEB A bit of history
4
V1.NET 3.5 SP1 Model First / Database First V2 (4).NET 4 POCOs Lazy Loading T4 V3 (4.1).NET 4 Code First Migrations NuGet V4 (5).NET 4 Enums Spatial Table-valued functions V5 (6).NET 4 Interceptors Logging Async Custom conventions Stored procedures V6 (7).NET 4.5.1 NoSQL Multi platform (.NET Core)
5
</WEB Highlights
6
Important stuff Entity Framework 7 is the next version of EF – Microsoft’s Data API Built on.NET 4.5.1+ and.NET Core Runs on Windows Phone and Windows Store apps, Linux and Mac – wherever.NET Core is available Supports non-relational data stores and in-memory Scheduled for Q1 2016 – feature complete now Not recommended for production usage!
7
</WEB Changes
8
What’s new Totally rewritten code base Provider-based: built-in providers include in-memory, SQL Server, SQLite, PostgreSQL, SQL Server Compact Edition, Redis and Azure Table Storage Available on GitHub: https://github.com/aspnet/EntityFrameworkhttps://github.com/aspnet/EntityFramework Different Nuget packages for different providers – very modular Some cool new features, but many won’t be available on v7.0 Improved SQL generation
9
</WEB Departures
10
Removed features ObjectContext API Entity-SQL – should use LINQ or SQL instead Model-first (aka, EDMX) – use database first or code first Database initializers – use migrations.NET 4.x support Automatic migrations – customize generated migrations
11
</WEB Newcomers
12
Functionality previously unavailable.NET Core makes it possible to run on Mac, Linux, Windows Phone, Windows Store Provider model makes it possible to support non-relational data stores (e.g., in-memory, NoSQL) Pluggable primary key generators (e.g., HiLo, sequence, identity, manual) Batching of Creates, Updates and Deletes Mixing of LINQ and SQL Executing client-side functions in LINQ Shadow properties – properties that do not exist in the POCO model
13
</WEB Demo
14
</WEB Still expected
15
Will be ready when launched Logging Full data annotations support Cascade deletes of orphans Table Per Hierarchy inheritance pattern See more: https://github.com/aspnet/EntityFramework/wiki/Roadmaphttps://github.com/aspnet/EntityFramework/wiki/Roadmap
16
</WEB Not now
17
Now now In the backlog for later Lazy and eager loading Custom conventions Table Per Class, Table Per Concrete Class patterns Entity/table splitting Many:many relations without middle entity Data seeding Full logging Generate model from the database Complex types Stored procedures support for CUDs Connection resiliency Interception Azure Table Storage, Redis Type conversions
18
</WEB Maybe some other time...
19
May be available in the future Different kinds of collections (maps, sets) Collections of value types Lazy properties Formula properties Filters
20
</WEB Questions?
21
</WEB Thank you! More at: Blog: Development With A DotDevelopment With A Dot Twitter: @RJPeres75@RJPeres75
23
#mswebcamp
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.