Top "Entity-framework-core" questions

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

Entity Framework Core Auto Generated guid

Can some One guide me I want primeryKey of a table as guid having db generated value on insert. [Key] […

c# entity-framework-core asp.net-core-2.1
How to call a stored procedure in EF Core 3.0 via FromSqlRaw

I recently migrated from EF Core 2.2 to EF Core 3.0. Unfortunately, I haven't found a way to call a stored procedure …

c# entity-framework entity-framework-core .net-core-3.0
Cascade deleting with EF Core

I am having a few issues with EF Core at the moment. I have some data that I need to …

c# .net-core entity-framework-core asp.net-core-2.0 ef-core-2.0
The term 'Add-migration' is not recognized - VS2017 and EntityFrameworkCore

I am posting this question just in case the solution I found would help someone else out. While working in …

entity-framework-core visual-studio-2017
Entity Framework Core - setting the decimal precision and scale to all decimal properties

I want to set the precision of all the decimal properties to (18,6). In EF6 this was quite easy: modelBuilder.Properties&…

c# entity-framework asp.net-core entity-framework-core
Include several references on the second level

Assume we have this model : public class Tiers { public List<Contact> Contacts { get; set; } } and public class Contact { …

asp.net-core-mvc entity-framework-core
Entity Framework Core service default lifetime

In ASP.NET Core application I can register DbContext through DI like this services.AddDbContext<Models.ShellDbContext>(options =&…

asp.net-core entity-framework-core
Entity Framework Core Eager Loading Then Include on a collection

I have three Models that I want to include when performing a query. Here is the scenario. public class Sale { …

c# entity-framework entity-framework-core
Entity Framework Core RC2 table name pluralization

Is there a way to do what this code did in EF Core RC 2? protected override void OnModelCreating(ModelBuilder modelBuilder) { …

c# entity-framework-core pluralize tablename
Using EF Core ThenInclude() on Junction tables

I'm transfering my .NET Framework (EF6) code to ASP.NET Core (EF Core), and I stumbled upon this issue. Here …

entity-framework asp.net-core asp.net-core-mvc entity-framework-core