Open iPilot opened 8 months ago
When enum is derived from ulong and used as a type of a property that translates to a table column with TypeName configured using
ulong
TypeName
protected override void ConfigureConventions(ModelConfigurationBuilder configurationBuilder) { configurationBuilder.Properties<ulong>(p => p.HaveColumnType("bigint")); }
(regardless ColumnAttribute presence), then enum values for constraint are generated as floating point numbers (double or decimal it is not clear).
ColumnAttribute
double
decimal
When ColumnAttribute and its TypeName property are provided explicitly then enum values are generated correctly.
When enum is derived from
ulong
and used as a type of a property that translates to a table column withTypeName
configured using(regardless
ColumnAttribute
presence), then enum values for constraint are generated as floating point numbers (double
ordecimal
it is not clear).When
ColumnAttribute
and itsTypeName
property are provided explicitly then enum values are generated correctly.