/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromCreateicfuturettcriteria(ref DataRow row, Createicfuturettcriteria entity) { row.SetField("prod", entity.prod); row.SetField("whse", entity.whse); row.SetField("unit", entity.unit); row.SetField("doctypes", entity.doctypes); row.SetField("throughdt", entity.throughdt); row.SetField("backordonly", entity.backordonly); row.SetField("recordcountlimit", entity.recordcountlimit); row.SetField("userfield", entity.userfield); }
public static Createicfuturettcriteria BuildCreateicfuturettcriteriaFromRow(DataRow row) { Createicfuturettcriteria entity = new Createicfuturettcriteria(); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.unit = row.IsNull("unit") ? string.Empty : row.Field <string>("unit"); entity.doctypes = row.IsNull("doctypes") ? string.Empty : row.Field <string>("doctypes"); entity.throughdt = row.Field <DateTime?>("throughdt"); entity.backordonly = row.Field <bool>("backordonly"); entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }