/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPtxtranslineslistcriteria(ref DataRow row, Ptxtranslineslistcriteria entity) { row.SetField("whse", entity.whse); row.SetField("statustype", entity.statustype); row.SetField("keywordln", entity.keywordln); row.SetField("recordcountlimit", entity.recordcountlimit); }
public static Ptxtranslineslistcriteria BuildPtxtranslineslistcriteriaFromRow(DataRow row) { Ptxtranslineslistcriteria entity = new Ptxtranslineslistcriteria(); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.statustype = row.IsNull("statustype") ? string.Empty : row.Field <string>("statustype"); entity.keywordln = row.IsNull("keywordln") ? string.Empty : row.Field <string>("keywordln"); entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit"); return(entity); }