Tags » Entity Framework

Unable to update the EntitySet because it has a DefiningQuery


Getting following .Net exception message when trying to insert record in SQL server database table using Entity Framework:

Unable to update the EntitySet ‘ 57 more words


Migration from Entity Framework into Dapper

Migration from Entity Framework into Dapper.NET in a medium code base is not an easy task. It requires a lot of courage, effort and time and a few resistance within the team. 2,186 more words


Customize EF Core Scaffolding with Handlebars Templates

With the release of Entity Framework Core 2.1 we finally have a version of EF Core that is ready for prime time.  EF Core is a… 585 more words


Troubleshoot Add-Migration Error: Migrations are Pending


When I try to do an “add-migration”, I get the following error:

Unable to generate an explicit migration because the following explicit migrations are pending: … 137 more words


Deleting related entities with entity framework

Entity framework has some features and peculiarities that are useful in a lot of situations and with they can help us to do some operations in very smart and efficient mode. 685 more words


SQL Server Spatial Types and nUnit

I was recently working on a .NET 4.6 based project that was using EF 6 and nUnit for unit testing. While setting up some integration tests against a local SQL database I was receiving this error: 412 more words


Immutable Models in MVVM

Source: flickr/ Jeff Attaway


The first M stands for Model – an implementation of the application’s domain model that includes a data model along with business and validation logic. 720 more words