Type conversion - bigint to timespan
timmac-qmc opened this issue · comments
I can't find any documentation about support for type conversions.
I need to bind a MudBlazor TimePicker to a timespan variable, this would normally be stored as a bigint in the database and converted by EF
see: https://stackoverflow.com/questions/17129795/storing-timespan-with-entity-framework-codefirst-sqldbtype-time-overflow
EF can do this conversion automatically with annotations but I can't find a way to tell efg to add this to the generated model
[Column(TypeName = "bigint")]
public TimeSpan Span { get; set; }
Any help would be appreciated.
Nevermind, worked out setting database type to "time(7)" lets EFG create a timespan field.