From 60584ef85a6f13803c76fb525b86da4b45c019da Mon Sep 17 00:00:00 2001 From: Rick Anderson Date: Fri, 18 Aug 2017 12:43:14 -0400 Subject: [PATCH] Update index.md (#4025) * Update index.md * Tweaks to EF error blurb --- aspnetcore/migration/1x-to-2x/index.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/aspnetcore/migration/1x-to-2x/index.md b/aspnetcore/migration/1x-to-2x/index.md index 294c4b8d40..33c898c90f 100644 --- a/aspnetcore/migration/1x-to-2x/index.md +++ b/aspnetcore/migration/1x-to-2x/index.md @@ -93,7 +93,11 @@ In 2.0 projects, the `Main` method of *Program.cs* has been simplified: [!code-csharp[Main](../1x-to-2x/samples/AspNetCoreDotNetCore2.0App/AspNetCoreDotNetCore2.0App/Program.cs?highlight=8-11)] -The adoption of this new 2.0 pattern is highly recommended and is required in order for product features like [Entity Framework Core Migrations](xref:data/ef-mvc/migrations) to work. +The adoption of this new 2.0 pattern is highly recommended and is required for product features like [Entity Framework Core Migrations](xref:data/ef-mvc/migrations) to work. For example, running `Update-Database` from the Package Manager Console window or `dotnet ef database update` from the command line (on projects converted to ASP.NET Core 2.0) generates the following error: + +``` +Unable to create an object of type ''. Add an implementation of 'IDesignTimeDbContextFactory' to the project, or see https://go.microsoft.com/fwlink/?linkid=851728 for additional patterns supported at design time. +``` @@ -133,4 +137,4 @@ If you are using the Application Insights SDK directly, continue to do so. The 2 ASP.NET Core 2.0 has a new authentication model and a number of significant changes to ASP.NET Core Identity. If you created your project with Individual User Accounts enabled, or if you have manually added authentication or Identity, see [Migrating Authentication and Identity to ASP.NET Core 2.0](xref:migration/1x-to-2x/identity-2x). ## Additional Resources -- [Breaking Changes in ASP.NET Core 2.0](https://github.com/aspnet/announcements/issues?page=1&q=is%3Aissue+is%3Aopen+label%3A2.0.0+label%3A%22Breaking+change%22&utf8=%E2%9C%93) \ No newline at end of file +- [Breaking Changes in ASP.NET Core 2.0](https://github.com/aspnet/announcements/issues?page=1&q=is%3Aissue+is%3Aopen+label%3A2.0.0+label%3A%22Breaking+change%22&utf8=%E2%9C%93)