我使用LINQ將數據集表到自定義對象:數據錶轉換成對象
var list = (from row in ds.Tables[0].AsEnumerable()
select new MyObj
{
Porp1 = row.Field<string>("field1"),
Prop2 = row.Field<string>("field2")
}).ToList();
如何檢查與特定名稱的列時存在,如果沒有,分配空字符串?