DEV Community

Discussion on: Build a Simple CRUD App with Angular 8 and ASP.NET Core 2.2 - part 1 - back-end

Collapse
 
cdthomp1 profile image
Cameron Thompson • Edited

So after some investigation, I changed line 35 of Startup.cs from "options.UseSqlServer(Configuration.GetConnectionString("BlogPostsContext")));" to "options.UseInMemoryDatabase(Configuration.GetConnectionString("BlogPostsContext")));" This allowed me to skip the section of doing "Add-Migrations Initial"

Collapse
 
dileno profile image
Martin Soderlund Ek

Thanks for sharing!

Installing these packages via Nuget might solve it too:

Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.SqlServer