Top "Entity-framework-core" questions

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

How to unapply a migration in ASP.NET Core with EF Core

When I run PM> Remove-Migration -context BloggingContext in VS2015 with an ASP.NET Core project using EF Core I …

c# asp.net-core entity-framework-core .net-core visual-studio-2015
Error: the entity type requires a primary key

I would like to expand the question asked on this thread Binding listbox to observablecollection by giving it an ability …

c# wpf entity-framework-core
How to run stored procedures in Entity Framework Core?

I am using EF Core 1.0 in an ASP.NET Core App. Can you please point me to the proper way …

asp.net-core asp.net-core-mvc entity-framework-core
The term "Add-Migration" is not recognized

I'm using this MSDN Tutorial to run in VS2015 the command PM> Add-Migration MyFirstMigration -context BloggingContext that ran yesterday …

visual-studio-2015 asp.net-core entity-framework-core
Entity Framework Core add unique constraint code-first

I can't find way to add a unique constraint to my field with using attribute: public class User { [Required] public …

c# entity-framework entity-framework-core
How to update record using entity framework core?

What is the best approach to update a database table data in entity frame work core ? Retrive the table row , …

entity-framework-6 .net-core entity-framework-core
Raw SQL Query without DbSet - Entity Framework Core

With Entity Framework Core removing dbData.Database.SqlQuery<SomeModel> I can't find a solution to build a raw …

c# entity-framework-core
Unable to create migrations after upgrading to ASP.NET Core 2.0

After upgrading to ASP.NET Core 2.0, I can't seem to create migrations anymore. I'm getting "An error occurred while calling …

c# asp.net-core asp.net-core-mvc entity-framework-core asp.net-core-2.0