I have a class like that:
public class Customer
{
public string Name {get; set; }
public enumGender Gender {get; set; }
}
public enum enumGender
{
Male,
Female
}
I`m trying to use this as entity and i want to map gender to the database as int, right now gender of course doesn’t get mapped at all.
any idea how to do that
thanks in advance.
this is how i got over it….