Top "Entity-framework-core" questions

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

How to tell Entity Framework that my ID column is auto-incremented (AspNet Core 2.0 + PostgreSQL)?

Code is simple. Tag.cs entity: public partial class Tag { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } public …

asp.net-core entity-framework-core auto-increment npgsql
EF Core - Table '*.__EFMigrationsHistory' doesn't exist

I want to stress out that this is .NET Core and the threads about EF 6.0 does not apply to this …

c# mysql entity-framework entity-framework-core .net-core
ef core don´t use ASPNETCORE_ENVIRONMENT during update-database

I use visual studio to update all my environments with a certain migration. It had worked fine using the command …

c# .net-core visual-studio-2017 entity-framework-core
EntityFramework code first: Set order of fields

I am using EntityFramework with the "Code first" approach with migrations. I have successfully generated tables from my models, but …

c# entity-framework asp.net-core entity-framework-core asp.net-core-1.0
ASP.NET Core with EF Core - DTO Collection mapping

I am trying to use (POST/PUT) a DTO object with a collection of child objects from JavaScript to an …

c# asp.net-core entity-framework-core automapper asp.net-core-webapi
How to make EF-Core use a Guid instead of String for its ID/Primary key

When I look at the ASP.NET 3 Identity it uses a string and not a Guid for the unique primary …

c# asp.net-core entity-framework-core asp.net-identity asp.net-identity-3
EF Core 2.0 how to use SQL stored procedure

I am new to EF Core 2.0 with stored procedure. Can anyone help how to use stored procedure in my EF …

stored-procedures entity-framework-core asp.net-core-2.0 entity-framework-core-migrations
How can I call a SQL Stored Procedure using EntityFramework 7 and Asp.Net 5

For last couple of days I am searching for some tutorials about how to call a Stored Procedure from inside …

c# sql-server asp.net-core-mvc entity-framework-core ef-database-first
EF Core: Using ID as Primary key and foreign key at same time

I have two entities, Prospect and Person, what I'm trying to do is use Prospect.ID as the primary key …

c# entity-framework-core ef-model-builder
How do you configure the DbContext when creating Migrations in Entity Framework Core?

Is there way that dependency injection can be configured/bootstrapped when using Entity Framework's migration commands? Entity Framework Core supports …

c# dependency-injection .net-core entity-framework-core dbcontext