verdie-g/StoredProcedureEFCore

Nullable enums

acidbless opened this issue · 0 comments

Hi! I have a model with a member declared as nullable enum (QuitMode) and the corresponding column in the database is declared as nullable int. When I call ToListAsync I'm getting the error:

Unable to cast object of type 'System.Int32' to type 'System.Nullable`1[Common.SharedTypes.SharedEnums.QuitMode]'.

Am I doing something wrong or is it a bug?