Top "Entity-framework-core" questions

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

Add migration with different assembly

I am working on a project with ASP.NET CORE 1.0.0 and I am using EntityFrameworkCore. I have separate assemblies and …

c# asp.net-core entity-framework-core entity-framework-migrations
Entity Framework Core Using multiple DbContexts

I'm having a problem that when I try to access a field in my PartsDbContext I get the following error: …

c# entity-framework-core dbcontext asp.net-core-1.1
Dynamically change connection string in Asp.Net Core

I want to change sql connection string in controller, not in ApplicationDbContext. I'm using Asp.Net Core and Entity Framework …

c# asp.net asp.net-core entity-framework-core
EntityFramework Core automatic migrations

Is there any code to perform automatic migration in Entity Framework core code first in asp.net core project? I …

entity-framework asp.net-core entity-framework-core
How to instantiate a DbContext in EF Core

I have setup .net core project and db context also. But i cant start using dbContext yet due this error- "…

c# asp.net-core .net-core entity-framework-core
.NET Core 2.1 Identity get all users with their associated roles

I'm trying to pull out all my Identity users and their associated roles for a user management admin page. I …

c# mysql asp.net-core entity-framework-core asp.net-core-identity
How to seed in Entity Framework Core 2?

I have two tables and I want to fill it using seeds. I use ASP.NET Core 2 in Ubuntu. How …

c# .net-core entity-framework-core
Entity framework EF.Functions.Like vs string.Contains

I was reading the announcement of entity framework core 2.0 https://blogs.msdn.microsoft.com/dotnet/2017/08/14/announcing-entity-framework-core-2-0/ It says that …

c# entity-framework .net-core entity-framework-core
Filtering on Include in EF Core

I'm trying to filter on the initial query. I have nested include leafs off a model. I'm trying to filter …

entity-framework-core
Your startup project doesn't reference Microsoft.EntityFrameworkCore.Design

I have 2 projects in my solution, I have a project with Entity Framework Core installed: And in the other ASP.…

c# visual-studio nuget entity-framework-core