0

Entity Framework does not seem to handle System Versioning columns well (StartDate, EndDate) for temporal tables. When we scaffold a database automatically, we want to place SystemVersioning Columns as NotMapped. Is there a parameter in commandline to make System Versioning Columns automatically as not mapped? Company literally 1000s of tables, and need way to make them automatically NotMapped, everytime we rescaffold. Scaffolding is done very week.

dotnet ef dbcontext scaffold 

1 Answers1

0

Make the columns HIDDEN, and they will not be scaffolded.

ALTER TABLE [dbo].[Account] ALTER COLUMN [StartDate] ADD HIDDEN;

hide a column from table in MS SQL Server

julianstark999
  • 3,450
  • 1
  • 27
  • 41
ErikEJ
  • 40,951
  • 5
  • 75
  • 115