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'd like to force the EFCore generated property types for all SmartEnums with a Value type of string to be varchars instead of the nvarchar (unicode) default. I know this is really more of an EFCore type question, but because of the generic nature of the enum types, I haven't been able to figure out quite what it would look like.
I would normally just turn off Unicode for the relevant type in ConfigureConventions():
I'd like to force the EFCore generated property types for all SmartEnums with a Value type of string to be varchars instead of the nvarchar (unicode) default. I know this is really more of an EFCore type question, but because of the generic nature of the enum types, I haven't been able to figure out quite what it would look like.
I would normally just turn off Unicode for the relevant type in ConfigureConventions():
I think I could just list each specific enum type like this:
But I was hoping to do something more generic based on inheritance/derived types and not have to hardcode each of them.
Anyone know of a way I could do that globally to all the types derived from SmartEnum?
Thanks-
The text was updated successfully, but these errors were encountered: