I am converting dataset table into custom object using linq:
var list = (from row in ds.Tables[0].AsEnumerable()
select new MyObj
{
Porp1 = row.Field<string>("field1"),
Prop2 = row.Field<string>("field2")
}).ToList();
How do I check that a column with specific name is exists, and if not, assign empty string?