RevEng: Do not generate ValueGenerated.Never for key columns with default values #5428
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
providers-beware
type-bug
Milestone
See #5366. For the SQL Server Scaffolding provider we currently generate
ValueGenerated.Never
for single integer or Guid key columns unless they are marked as IDENTITY columns. See https://github.com/aspnet/EntityFramework/blob/dev/src/Microsoft.EntityFrameworkCore.SqlServer.Design/Internal/SqlServerScaffoldingModelFactory.cs#L92. We need to also not generateValueGenerated.Never
for the same key columns if theColumnModel
has non-nullValueGenerated
orDefaultValue
.The text was updated successfully, but these errors were encountered: