hi all
I have error in code
can not convert anonymous to hobby type
please assist me
public partial class hobby
{
public int hobby_id { get; set; }
public string hobbyname { get; set; }
public bool isactive { get; set; }
}
var ssss = new { hobby_id = 1, hobbyname = "chess", isactive = true };
hobby hhss = (hobby)ssss; //error in this