Using Entity Framework Core

Add a new Console Application (Package) project named Ch08_EFCore.

Tip

Notice that we have chosen Console Application (Package) to target .NET Core.

To use EF Core, you must install a provider for the RDBMS you want to use. You can find an up-to-date list of data providers here:

http://ef.readthedocs.org/en/latest/providers/index.html

To install the provider for SQL Server, on the Tools menu, choose NuGet Package Manager and then choose Package Manager Console.

In Package Manager Console, ensure package source is set to nuget.org and default project is set to Ch08_EFCore. Then, enter the following command in the prompt:

install-package entityframework.microsoftsqlserver

Tip

By the time you read this book, the final release ...

Get C# 6 and .NET Core 1.0: Modern Cross-Platform Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.