Entity Framework Core.

Slides:



Advertisements
Similar presentations
Shyam Pather Development Manager Microsoft Session Code: DTL402.
Advertisements

Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
05 | Data Access with Entity Framework Bruno Terkaly | Technical Evangelist Bret Stateham | Technical Evangelist.
Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.
Web & Cloud Development Jason Keicher - Microsoft.
Entity Framework 7 Who Are You & What Have You Done to my ORM?
Entity Framework 7: What’s New? Ricardo Peres Technical Evangelist at Simplifydigital. Microsoft
2 Behind every great site, there is great data Eric Nelson Developer Evangelist Microsoft UK
Data Access Methodologies: When to choose what (ADO.NET, Entity Framework, WCF Data Services) Wriju Ghosh Lead Partner Consultant, Microsoft.
Data in Windows 10 UWP Andy Wigley XML, JSON, SQLite or EF Core ?
03 | The Power of Visual Studio Jon Galloway | Technical Evangelist Christopher Harrison | Content Developer.
What is it all about? .NET MeetUp in Prague, CZ (2017/7/19)
Top 10 Entity Framework Features Every Developer Should Know
Building Enterprise Applications Using Visual Studio®
12/29/2017 2:33 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Introduction to Entity framework
The Xamarin Promise - Realized
Introduction to .NET Florin Olariu
5/15/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
5/15/2018 5:43 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
What’s new in Entity Framework Core 2.0
Data centric apps for web, desktop and mobile with EF5
ASP.NET Core: Web apps, cloud apps, and containers
6/2/2018 4:08 AM BRK3327 Ten things you didn't know about building .NET UWP apps in Visual Studio 2017 Daniel Jacobson Program Manager – Visual Studio.
The Future of C# The Future of C# and VB 2-577
The Modern ASP.NET Tech Stack!
 .NET CORE
Getting Started with Visual Studio Tools for Tizen
Did your feature got in, out or planned?
Building Innovative Apps using the Microsoft Developer Platform
SQL Server Data Tools for Visual Studio Part I: Core SQL Server Tools
Entity Framework By: Casey Griffin.
A Tour of EF Core’s Most Interesting & Important Features
Introducing ASP.NET Core 2.0
Microsoft Virtual Academy
Microsoft Connect /17/ :55 PM
Learn. Imagine. Build. .NET Conf
ADO.NET Entity Framework
Darren Neimke and Jonathan Ruckert
What is it all about? .NET MeetUp in Amsterdam, NL (2017/7/11)
ADO.NEXT Advances in Data Access for 2008
Microsoft Ignite NZ October 2016 SKYCITY, Auckland
Explore web development with Microsoft ASP.NET Core 1.0
DotnetConf 11/14/2018 3:27 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE.
Microsoft Ignite /14/ :21 AM BRK2101
Microsoft Build /14/ :29 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Microsoft Build /15/2018 6:28 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
An Introduction to Entity Framework
11/18/2018 2:14 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Server & Tools Business
Microsoft Connect /26/2018 6:09 PM
Microsoft Connect /1/2018 2:36 AM
12/3/2018 7:56 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Application Insights Diagnostics Preview
Entity Framework Core (EF Core)
Modern cloud PaaS for mobile apps, web sites, API's and business logic apps
Jim Nakashima Program Manager Cloud Tools
Visual Studio 2005 Tools For Office: Creating A Multi-tier Application
Microsoft Connect /17/2019 9:55 PM
Pablo Castro Software Architect Microsoft Corporation
Microsoft Connect /22/2019 9:54 PM
From Development to Production: Optimizing for Continuous Delivery
Microsoft Build /27/2019 2:26 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
TechEd /3/ :48 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
From Development to Production: Optimizing for Continuous Delivery
5/6/2019 7:40 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
Data Access in .NET Core 3.0 Applications
Server & Tools Business
Office 365 Development July 2014.
Mark Quirk Head of Technology Developer & Platform Group
Presentation transcript:

Entity Framework Core

Agenda Setting some context Introducing EF Core EF Core and EF6.x Demos Next steps

Setting some context

Definitions EF = Entity Framework EF Core = Entity Framework Core EF6.x = Entity Framework 6 O/RM = Object/Relational Mapper EF is an O/RM for .NET development

Entity Framework Project Status Entity Framework Core 2.0 Entity Framework 6.1 Entity Framework Core 1.1 Runtime on NuGet Tooling on Microsoft Download Center Latest version included in Visual Studio Entity Framework 6.0 Entity Framework Core 1.0 Entity Framework 5.0 New runtime components on NuGet Core runtime components in .NET 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

Naming history Entity Framework Everywhere Entity Framework 7 (EF7) Entity Framework Core (EF Core) 1.0

Introducing EF Core

“Entity Framework Core is a lightweight, extensible, and cross-platform version of Entity Framework”

New platforms

COMMON INFRASTRUCTURE 11/27/2018 5:04 PM New Platforms .NET FRAMEWORK WINDOWS APPLICATIONS .NET CORE CROSS-PLATFORM SERVICES MOBILE APPLICATIONS XAMARIN TOOLS Visual Studio Visual Studio Code .NET STANDARD LIBRARY COMMON INFRASTRUCTURE Xamarin Studio Compilers Languages Runtime components EF6.x EF Core © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

New data stores

New data stores Relational & non-relational Example providers Not a magic abstraction High level services that are useful on all/most stores Non-common concerns handled by provider extensions Example providers Relational (SQL Server, SQLite, Postgres, SQL Compact, etc.) Azure Table Storage (prototype) Redis (prototype) In Memory (for testing) Just relational providers for v1

New features

New features Batching During SaveChanges Mapping to Fields 11/27/2018 5:04 PM New features Batching During SaveChanges Mapping to Fields Client Evaluation in LINQ Queries Key Generators Shadow Properties Database Sequences Alternate Keys Memory-Optimized Table Support © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Lightweight & extensible

Lightweight & extensible Top level API built over low level services Services = SQL generation, change tracking, etc. Follows dependency injection principles Easy to use/replace/extend individual services Pay-per-play components E.g. if your not using a relational provider, the relational components are not referenced or deployed

EF Core & EF6.x

EF Core Mindful of our past… …but not constrained by it Same top level experience as EF6.x Not changing things just for the sake of it …but not constrained by it New code base Completely different core Not all features from EF6.x will be implemented

EF Core & EF6.x EF6.x is the mature data stack EF Core is a true v1 8 years of RTM releases = features and stability Rich ecosystem of database providers Patch and minor releases will continue EF Core is a true v1 Basic feature set shipping in v1 Limited set of early adopter database providers

EF Core & EF6.x EF6.x will be the right choice for many applications Carefully evaluate requirements if considering EF Core Many features not implemented in 1.0.0 (e.g. lazy loading, stored procedure mapping, etc.) Less mature code base (e.g. LINQ translator has limitations) EF6.x to EF Core is “port” not “upgrade” Very basic code will port easily Many APIs have changed drastically Beware of behavior differences in similarly named APIs Detailed guidance at docs.microsoft.com/ef See “EF Core & EF6.x” section

Demos

Demo EF Core 101

Demo Performance improvements

Demo Simplified metadata API

Demo Extensible services

Extensible services Top Level API DbContext, DbSet, ChangeTracker, Database, etc. Core Services StateManager, CompiledQueryCache, etc. Database Provider Services SqlServerTypeMapper, SqlServerSqlGenerationHelper, etc.

Demo Same model, multiple platforms

Demo Same model, multiple databases

Demo SQL generation improvements

Demo Field mapping

Demo Memory-optimized table support

Next steps

Next steps Learn about EF Core Contribute to product or docs docs.efproject.net Contribute to product or docs github.com/aspnet/EntityFramework github.com/aspnet/EntityFramework.Docs Demo source github.com/rowanmiller/Demo-EFCore