Efcore: Should Migration.Designer.cs and DbContextModelSnapshot.cs be under version control?

Created on 14 Dec 2018  路  1Comment  路  Source: dotnet/efcore

Those files are auto-generated. I often see people are pushing them to their repositories, what is your recommendation?

closed-question customer-reported

Most helpful comment

@Sigvaard They should be checked in; the way migrations works requires they persist from when the tooling last generated them until some new migration is generated.

>All comments

@Sigvaard They should be checked in; the way migrations works requires they persist from when the tooling last generated them until some new migration is generated.

Was this page helpful?
0 / 5 - 0 ratings