TrackableEntities / EntityFrameworkCore.Scaffolding.Handlebars

Scaffold EF Core models using Handlebars templates.
MIT License
210 stars 53 forks source link

Allow setting new value for HasDefaultValue #244

Closed johnwc closed 8 months ago

johnwc commented 8 months ago

For v8, can you add a DefaultValue to EntityPropertyInfo that allows us to replace the default value? This would help when setting the type as an Enum, and ef is setting it as a number. Which throws an error. HasDefaultValue(0) vs HasDefaultValue(MyEnum.Default)