.NET on Linux: Entity Framework Core 1.0

Post on 21-Jan-2017

128 views 1 download

Transcript of .NET on Linux: Entity Framework Core 1.0

11

.NET on Linux: Entity Framework Core 1.0

http://redhatloves.net

Admitted bias alert!This presentation uses Red Hat Enterprise Linux as supplied by the Red Hat Container Development Kit

Quick Overview of .NET Core

Quick Overview of .NET Core

● .NET Core is new

Quick Overview of .NET Core

● .NET Core is new● It’s the future

Quick Overview of .NET Core

● .NET Core is new● It’s the future● Has a fast development cycle

● .NET Core is new● It’s the future● Has a fast development cycle● In short, it’s legit

Quick Overview of .NET Core

Installation (on Red Hat Enterprise Linux)

subscription-manager list --available

subscription-manager attach --pool=<id>

subscription-manager repos --enable=rhel-7-server-dotnet-rpms

yum install -y scl-utils

yum install -y rh-dotnetcore10

scl enable rh-dotnetcore10 bash

Much the same

● Blah blah blah .NET blah blah Linux blah blah.● In other words, you can run the same code on Linux or

Windows (or MacOS).● There are a few considerations for Linux containers.

dotnet

The new Command Line Interface (CLI)

The ubiquitous “Hello World”The “big three”: New, Restore, Run

<repo>/HelloWorld

Let’s talk about Entity Framework Core 1.0

It’s new

Let’s talk about EF Core 1.0

Naming:

Entity Framework Everywhere

Let’s talk about EF Core 1.0

Naming:

Entity Framework Everywhere

Entity Framework 7 (EF7)

Let’s talk about EF Core 1.0

Naming:

Entity Framework Everywhere

Entity Framework 7 (EF7)

Entity Framework Core (EF Core) 1.0

Let’s talk about EF Core 1.0

EF 3.5, EF 4

Built into .NET framework

L-O-N-G development cycles

Eine kleine history

EF 4.x, EF 5

New stuff in Nuget

Rest still in .NET

Eine kleine history

EF 6.x

Runtime on Nuget

Eine kleine history

EF Core 1.0

All on Github

Eine kleine history

EF Core works with .NET Framework

Run everywhere

EF Core works with .NET Framework

EF Core works with .NET Core

Run everywhere

EF Core works with .NET Framework

EF Core works with .NET Core

EF Core works with Xamarin

Run everywhere

Providers

SQL Server

Providers

SQL Server

Postgres

Providers

SQL Server

Postgres

SQLite

Providers

SQL Server

Postgres

SQLite

InMemory

Providers

SQL Server

Postgres

SQLite

InMemory

NoSQL, e.g. Redis

Providers

New Features

Batching during SaveChanges

New Features

Batching during SaveChanges

Client eval in LINQ queries

New Features

Batching during SaveChanges

Client eval in LINQ queries

Shadow state properties

New Features

Pay To Play

New Features

Pay-To-Play Example...

dotnet ef utility

ResourcesWeb sites:

RedHatLoves.Net

Dot.NET

Live.asp.net

docs.microsoft.com/en-us/dotnet

ResourcesRepos:

github.com/dotnet/

github.com/aspnet/

github.com/aspnet/EntityFramework

github.com/donschenck/DotNetOnLinux

github.com/donschenck/SweetVirginia

ResourcesBipedal, carbon-based life forms:

@DonSchenck

dschenck@redhat.com

redhatloves.net

@DonSchenck