edandersen / core-admin

Fully automatic admin site CRUD UI generator for ASP.NET Core and .NET 8
Other
599 stars 111 forks source link

Edit screen shows DatabaseGenerated fields when Create doesn't #56

Closed PawelZygmax closed 2 years ago

PawelZygmax commented 2 years ago

Despite adding Annotations over Id like this:

[Display(AutoGenerateField = false)] [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; }

field id is generated in edit mode, when adding new entity it works fine

edandersen commented 2 years ago

Addressed in 2.5.1. Please reopen if not fixed.