I have declared the Boolean flags as below.
[Flags]
public enum StudentStatus
{
True = 1,
False = 2
}
I'm getting the value through the DataValues collections in the below line and I want to assign it into the below property.
var student= new Student();
student.Status= StudentInfo.Data.DataValues
.Where(m => m.FieldName.Equals("Status"))
.Select(m => m.StatusValue).SingleOrDefault();