I have Class like
public class Myclass
{
[Column]
public string no{ get; set; }
[Column]
public string Name{ get; set; }
[Column]
public string Address{ get; set; }
[Column]
public DateTime DOB{ get; set; }
}
and my select query is
List<Myclass> list=DAL.db.Fetch("select b.ref_no no,a.name,a.Address,a.DOB from tbla a join tblb b on b.id=a.ref_id");
Sometimes I get the wrong result that is I got the same record.I guess my class decoration changed to like this,
public class Myclass
{
[ResultColumn]
public string no{ get; set; }
[ResultColumn]
public string Name{ get; set; }
[ResultColumn]
public string Address{ get; set; }
[ResultColumn]
public DateTime DOB{ get; set; }
}