Entity Framework Core 5 is a great ORM and I love how efficient and concise it is. With the migrations mechanism enabled, you can generate the next migration based on changes applied to your model. This is so cool, but when it comes to other database objects, you are on your own. I mean – you can still use migrations, but you have to figure out a SQL statement yourself. Let’s take a look at some cool statements you can use with the SQL Server database.


This is a very powerful command that literally just check if a database object exists, and it alters it or creates a new one based on that fact.

#ef core migrations #ms sql server #sql

Useful SQL statements when writing EF Core 5 migrations
1.05 GEEK