/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromVaspsectionspeccriteria(ref DataRow row, Vaspsectionspeccriteria entity) { row.SetField("prod", entity.prod); row.SetField("whse", entity.whse); row.SetField("vaverno", entity.vaverno); row.SetField("seqno", entity.seqno); row.SetField("sctntype", entity.sctntype); row.SetField("userfield", entity.userfield); }
public static Vaspsectionspeccriteria BuildVaspsectionspeccriteriaFromRow(DataRow row) { Vaspsectionspeccriteria entity = new Vaspsectionspeccriteria(); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.vaverno = row.IsNull("vaverno") ? 0 : row.Field <int>("vaverno"); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.sctntype = row.IsNull("sctntype") ? string.Empty : row.Field <string>("sctntype"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }