verdie-g / StoredProcedureEFCore

Entity Framework Core extension to execute stored procedures
MIT License
192 stars 44 forks source link

Nullable enums #48

Open acidbless opened 4 years ago

acidbless commented 4 years ago

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?