You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On PG for this case Converter needs to be explicitly configured in OnModelCreating:
modelBuilder.Entity<TimeRecord>().OwnsOne(a =>a.Source,
b =>b.Property(p =>p.Type).HasConversion(newEnumToNumberConverter<TimeRecordSourceType,int>()));
I have this scenario:
With this configuration:
When I'm trying a BulkInsertAsync, I receive this error:
Can't write CLR type Namespace.TimeRecordSourceType with handler type Int32Handler
Originally, I had this configuration:
But failed too with this error:
Can't write CLR type Namespace.TimeRecordSourceType with handler type String
How can I do this scenario to work?
The text was updated successfully, but these errors were encountered: