Deploying an EF Migration Zero Downtime? Watch Out!

Опубликовано: 05 Январь 2023
на канале: Zoran Horvat
6,569
296

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# ► https://codinghelmet.com/go/beginning...
Collections and Generics in C# ► https://codinghelmet.com/go/collectio...
Making Your C# Code More Object-oriented ► https://codinghelmet.com/go/making-yo...

Other courses at Pluralsight ► https://codinghelmet.com/go/pluralsight
Other courses at Udemy ► https://codinghelmet.com/go/udemy

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 to Write Complex...  
Coding with GitHub Copilot - Beginner to Master | VS Code Demo ►    • A Comprehensive Guide to GitHub Copil...  
What is Covariance and Contravariance in C# ►    • What is Covariance and Contravariance...  
How to Initialize a Clean ASP.NET Core Project with Entity Framework Core and Identity ►    • How to Initialize a Clean ASP.NET Cor...  
The Null Conundrum: A Guide to Optional Objects in C# ►    • How to Avoid Null Reference Exception...  

#entityframeworkcore #entityframework #dotnet