public DB.Stru.优抚科.优抚对象.参战涉核人员.生活费来源 GetFirst_ByWhere( string strWhere ) { DB.Stru.优抚科.优抚对象.参战涉核人员.生活费来源 stru = new DB.Stru.优抚科.优抚对象.参战涉核人员.生活费来源(); List<DB.Stru.优抚科.优抚对象.参战涉核人员.生活费来源> list = Get_ByWhere( strWhere ); if ( list != null && list.Count > 0 ) stru = list[ 0 ]; return stru; }
public static List<DB.Stru.优抚科.优抚对象.参战涉核人员.生活费来源> Dt2List( ref DataTable dt ) { List<DB.Stru.优抚科.优抚对象.参战涉核人员.生活费来源> lst = new List<DB.Stru.优抚科.优抚对象.参战涉核人员.生活费来源>(); if ( SQL.IsNotValid( ref dt ) ) return lst; foreach ( DataRow dr in dt.Rows ) { DB.Stru.优抚科.优抚对象.参战涉核人员.生活费来源 stru = new DB.Stru.优抚科.优抚对象.参战涉核人员.生活费来源(); stru.Dr2Stru( dr ); lst.Add( stru ); } return lst; }