Ricardo Peres Technical Evangelist at Simplifydigital Microsoft MVP RJPeres75 A bit of history A bit of history Highlights Highlights Important stuff Entity Framework 7 is the next version of ID: 705840
Download Presentation The PPT/PDF document "Entity Framework 7: What’s New?" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1Slide2
Entity Framework 7: What’s New?
Ricardo PeresTechnical Evangelist at Simplifydigital. Microsoft MVP.@RJPeres75Slide3
A bit of historySlide4
A bit of historySlide5
HighlightsSlide6
Highlights
Important stuffEntity 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!Slide7
ChangesSlide8
Changes
What’s newTotally rewritten code baseProvider-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/EntityFramework
Different
Nuget
packages
for different
providers – very modular
Some cool new features, but many won’t be available on v7.0
Improved
SQL generationSlide9
DeparturesSlide10
Departures
Removed featuresObjectContext 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 migrationsSlide11
NewcomersSlide12
Newcomers
Functionality previously unavailable.NET Core makes it possible to run on Mac, Linux, Windows Phone, Windows StoreProvider 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 modelSlide13
DemoSlide14
Still expectedSlide15
Still expected
Will be ready when launchedLoggingFull data annotations support
Cascade deletes of orphans
Table Per Hierarchy inheritance pattern
See more:
https
://
github.com/aspnet/EntityFramework/wiki/RoadmapSlide16
Not nowSlide17
Now now
In the backlog for laterLazy 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 conversionsSlide18
Maybe some other time...Slide19
Maybe some other time...
May be available in the futureDifferent kinds of collections (maps, sets)Collections of value
types
Lazy properties
Formula properties
FiltersSlide20
Questions?Slide21
Thank you!
More at:Blog: Development With A DotTwitter:
@RJPeres75Slide22Slide23Slide24