Database First Entity Framework 6 is what I'm utilising. I began receiving the following problem while trying to insert new data after making some of the tables in my schema temporal tables:
Cannot insert an explicit value into a GENERATED ALWAYS column in table '<MyDatabase>.dbo.<MyTableName>. Use INSERT with a column list to exclude the GENERATED ALWAYS column, or insert a DEFAULT into GENERATED ALWAYS column.
It seems like EF is attempting to update the values of
columns that the system controls.
The issue seems to be resolved by removing the columns from the EDMX file, however this is not a workable fix since the columns are inserted again each time the model is built from the database.