Entity Framework

Entity Framework Migrations

The purpose of generating Entity Framework migrations is to apply database schema changes consistently across Staging, UAT and Production environments. The proposed method would involve developers generating migration a migration script whenever changes are made to the Entity Framework model in their projects. The DevOps team would apply that migration script to update the Azure environments. The services and applications being developed themselves should not have permissions to modify the environment.

Entity Framework Core Command Line Reference

Installing Entity command line The .NET Entity Framework command line tools can be installed globally in PowerShell, or just for a specific project. dotnet tool install --global dotnet-ef After installation, it might be a good idea to update the tools: dotnet tool update --global dotnet-ef Add the Entity Framework Packages to a Project In order to use the Entity Framework command line tools for a .NET Core project, it’s necessary to install the Design package.

Thoughts on NET Core 6.0, Entity Framework and the New MVC Pattern

The following mostly doesn’t refer to problems native to the .NET Core 6 Framework itself, but rather some difficulties I encountered while getting an Entity Framework Database-First model working in the MVC project template generated by Visual Studio 2022. Some of the problems centred around: Breaking changes and things that might be awkward for developers accustomed to working with legacy non-Core versions of .NET (espectially .NET MVC). Not much documentation out there, relative to what’s published for the older .