linq2db.EntityFrameworkCore icon indicating copy to clipboard operation
linq2db.EntityFrameworkCore copied to clipboard

LinqToDBConvertException with array of enums

Open TiraelSedai opened this issue 3 years ago • 0 comments

Hi. I have System.DayOfWeek[] property inside on of my EF DbSet tables, and when I try to load this item from database, I get LinqToDBConvertException - {"Cannot convert value 'System.Int32[]: System.Int32[]' to type 'System.DayOfWeek[]'"}

Can you point me to additional configuration for proper mapping I have to do? Some attributes or something?

The database is Postgres, the driver is Npgsql if it's important.

I have done nothing additional except LinqToDBForEFTools.Initialize();

TiraelSedai avatar Apr 29 '22 15:04 TiraelSedai