Persisting the Type Safe Enum Pattern with EF 6

added by DotNetKicks
8/4/2016 6:59:15 PM

2 Kicks, 636 Views

I've written about Enum Alternatives in C#, and a common problem developers encounter when they try to use such an approach is persistence. By default, ORM tools like Entity Framework don't know what to do with these custom types. However, you can add support to let EF map these types to database columns as you would expect without too much effort.


0 comments