Top "Entity-framework-core" questions

Entity Framework (EF) Core is an open source multi-platform ORM developed by Microsoft.

Need to Update EF Core Tools

When I use the dotnet ef tools in the VS 2017 Package Manager Console I get a warning message about needing …

entity-framework-core
How and where to call Database.EnsureCreated and Database.Migrate?

I have a ASP.NET MVC 6 application, and i need to call the Database.EnsureCreated and Database.Migrate methods. But …

asp.net asp.net-mvc entity-framework entity-framework-core
How to update the model when using database first approach

I used EntityFramework Core database first to create model as illustrated in the EF Core documentation But I don't know …

asp.net-core entity-framework-core
.Net Core 3.0 possible object cycle was detected which is not supported

I have 2 entities that are related as one to many public class Restaurant { public int RestaurantId {get;set;} public string …

c# asp.net-core entity-framework-core
ASP.NET Core EF Add-Migration command not working

Following this Microsoft Tutorial when I run the PM> Add-Migration MyFirstMigration command in VS2015 project created from the same …

c# visual-studio-2015 asp.net-core entity-framework-core
SQLite in ASP.NET Core with EntityFrameworkCore

How do you add and use an SQLite database in an ASP.NET Core web application, using EntityFramework 7 ? I dived …

c# asp.net-mvc sqlite asp.net-core-mvc entity-framework-core
Could not load file or assembly Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.0.0

After update to the new package Microsoft.EntityFrameworkCore.SqlServer 1.1.2 I got error when try to create DBContext: System.IO.FileLoadException …

c# .net entity-framework .net-core entity-framework-core
How to store JSON in an entity field with EF Core?

I am creating a reusable library using .NET Core (targeting .NETStandard 1.4) and I am using Entity Framework Core (and new …

c# json.net entity-framework-core
What goes into DbContextOptions when invoking a new DbContext?

I am not using DI and simply want to invoke a DbContext from within my controller. I am struggling to …

entity-framework asp.net-core entity-framework-core
Entity Framework Core - Lazy Loading

Bowing to my Visual Studios request, I started my latest project using Entity Framework Core (1.0.1) So writing my database models …

c# entity-framework-core