Рет қаралды 7,095
Become a patron and get access to source code and exclusive live streams: / deploying-ef-out-81381682
It is fairly easy to deploy an EF migration without stopping the application, unless we made a breaking change. As this video is demonstrating, the migration, which is a DDL script, is normally deployed in a transaction. It is therefore possible to run it alongside online transactions executed by the running application! Again, unless the change imposed by the DDL script will break the application.
In this video, you will learn a safe way to add a field to the model, and so to add a column to the database table, without causing any service interruption that could be noticed by the users. The prior version of the application will be available through the entire process, all until replaced by the new version and stopped.
This update scheme is fully supported by the Entity Framework Core. It only remains that we, developers, make the steps in the right order, and the most daring part of our daily work - deployment - will work out smoothly.
Learn more from video courses:
Beginning Object-oriented Programming with C# ► codinghelmet.c...
Collections and Generics in C# ► codinghelmet.c...
Making Your C# Code More Object-oriented ► codinghelmet.c...
Other courses at Pluralsight ► codinghelmet.c...
Other courses at Udemy ► codinghelmet.c...
Other videos on this channel you may be interested in watching:
Using GitHub Copilot to Write Complex Code | Step-by-step Tutorial ► • Using GitHub Copilot t...
Coding with GitHub Copilot - Beginner to Master | VS Code Demo ► • A Comprehensive Guide ...
What is Covariance and Contravariance in C# ► • What is Covariance and...
How to Initialize a Clean ASP.NET Core Project with Entity Framework Core and Identity ► • How to Initialize a Cl...
The Null Conundrum: A Guide to Optional Objects in C# ► • How to Avoid Null Refe...
#entityframeworkcore #entityframework #dotnet