EF Core 1: News features and changes

12
1 Entity Framework Core 1 (formerly EF 7): New features and changes Manfred Steyer About me … Manfred Steyer Trainer & Consultant Angular & .NET Page 2

Transcript of EF Core 1: News features and changes

Page 1: EF Core 1: News features and changes

1

Entity Framework Core 1 (formerly EF 7):New features and changes

Manfred Steyer

About me …

Manfred Steyer

Trainer & Consultant

Angular & .NET

Page 2

Page 2: EF Core 1: News features and changes

2

Contents

Entity Framework Today

Current Influences

Entity Framework Tomorrow

DEMO

Conclusion

Folie 4

ENTITY FRAMEWORK TODAY

Page 5

Page 3: EF Core 1: News features and changes

3

EF 6.x

Folie 7

O/R-MapperMature

(since 2008)Optimized

Ecosystem Integration

Recommended LINQ

Modes of Operation

Folie 8

• Model First

• DB First

Mapping via XML

• Code First

• Code First with Reverse Engineering

Mapping via Code

Page 4: EF Core 1: News features and changes

4

Code First brings several advantages

Folie 9

Reverse Engineering

Source ControlMore Intuitive for

Developers

More Freedom for Developers

Code-basedConfiguration

Conventions

Migrations

DbContext

Object Model

Folie 10

ObjectContext

Page 5: EF Core 1: News features and changes

5

CURRENT INFLUENCES

Page 11

Folie 12

Page 6: EF Core 1: News features and changes

6

Folie 13

ENTITY FRAMEWORK TOMORROW

Page 14

Page 7: EF Core 1: News features and changes

7

Goals

Reach

• .NET Core

• NoSQL

Tity up

• Focus: Code First

• RIP ObjectContext

Folie 15

Non-Goals

Folie 16

• Yes, but only when itreally makes sense

API-Changes

• NoSQL != RDBMSAbstract

Paradigms

Page 8: EF Core 1: News features and changes

8

Migration

You have to modify existing code

Don't do it now!

Current Version 6.x will stay

Feature Set now

Folie 18

EF 6

EF Core 1

EF 6 is still the recommended version!

Page 9: EF Core 1: News features and changes

9

Feature Set in Future

Folie 19

EF 6

EF Core 1.x+

Some Limitations in EF Core 1.x

M:N-Relations

Model it with two 1:N

Lazy Loading

Just TPH-Inheritance

Complex Types

Custom Conventions

Mappings to Stored Procedures

Update Model from Database

Non-relational Providers

Page 10: EF Core 1: News features and changes

10

Some new Features

Handling of detached Entities

Improvements for Eager-Loading and Batching

Client-Evaluation and Raw SQL

Shadow State

Alternate Keys

Linux, Universal-Apps

PostgreSQL, SQLite

Folie 21

Core 1.x or 6.x

Web with.NET Core

EF Core 1.0

Universal Apps

EF Core 1.0

ElseEF 6.x

Code Frist

Page 11: EF Core 1: News features and changes

11

DEMO

Page 23

Conclusion

EF Core 1.x: Spring-Cleaning

Getting rid of Legacy

One Mode of Operation: "Code First"

Time seems to be fitting: .NET Core

Increasing Reach:

NoSQL, Linux, Universal-Apps (.NET Core)

Providers for SQL Server, PostgreSQL, SQLite

New features, like Batching or Shadow Properties

EF 6.x is still recommended

Folie 24

Page 12: EF Core 1: News features and changes

12

[email protected]

SOFTWAREarchitekt.at

ManfredSteyer

Contact