Walaa wrote:
How exactly do you want to use that enum?
I have a emplyee table, now I want the type "gender" is mapped on the gender field that is a int type when llblgen genearte code like this:
public virtual Nullable<PersonGender> Gender
{
get { return (Nullable<PersonGender>)GetValue((int)EmployeeFieldIndex.Gender, false); }
set { SetValue((int)EmployeeIndex.Gender, value); }
}
Walaa wrote:
Do you have a database field which has values that should be mapped to this enum?
yes, the gender field in table emplyee is a int type should be mapped to this enum value.