/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromCrbanklookupcriteria(ref DataRow row, Crbanklookupcriteria entity) { row.SetField("bankno", entity.bankno); row.SetField("statustypecd", entity.statustypecd); row.SetField("recordcountlimit", entity.recordcountlimit); row.SetField("userfield", entity.userfield); }
public static Crbanklookupcriteria BuildCrbanklookupcriteriaFromRow(DataRow row) { Crbanklookupcriteria entity = new Crbanklookupcriteria(); entity.bankno = row.IsNull("bankno") ? 0 : row.Field <int>("bankno"); entity.statustypecd = row.IsNull("statustypecd") ? string.Empty : row.Field <string>("statustypecd"); entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }