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
I have a enum defined in PostgtreSQL as CREATE TYPE NOTIFICATION_CHANNEL AS ENUM ('email', 'sms');
When I try to create query against this enum (smth. like dbContext.Notifications.Where(x=>x.Channel == NotificationChannel.Email))) i get cannot cast type notification_channel to integer
I have registered my enum as NpgsqlConnection.GlobalTypeMapper.MapEnum<NotificationChannel>();
in my DbContext static constructor.
Does EF6 NpgSql support PGSQL enums?
The text was updated successfully, but these errors were encountered:
I have a enum defined in PostgtreSQL as
CREATE TYPE NOTIFICATION_CHANNEL AS ENUM ('email', 'sms');
When I try to create query against this enum (smth. like
dbContext.Notifications.Where(x=>x.Channel == NotificationChannel.Email))
) i getcannot cast type notification_channel to integer
I have registered my enum as
NpgsqlConnection.GlobalTypeMapper.MapEnum<NotificationChannel>();
in my DbContext static constructor.
Does EF6 NpgSql support PGSQL enums?
The text was updated successfully, but these errors were encountered: