Is there a way I can map generated entities to enum?
And what I mean is simple:
class Person
{
RelationshipStaus RelationshipStatus { get; set; }
}
enum RelationshipStatus : byte
{
Single,
Married,
Divorced
}
The property RelationshipStatus in the DB is a simple byte, I want that in my project it should be an enum.