public static Arslloadcriteria BuildArslloadcriteriaFromRow(DataRow row) { Arslloadcriteria entity = new Arslloadcriteria(); entity.custno = row.IsNull("custno") ? decimal.Zero : row.Field <decimal>("custno"); entity.lockboxno = row.IsNull("lockboxno") ? string.Empty : row.Field <string>("lockboxno"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromArslloadcriteria(ref DataRow row, Arslloadcriteria entity) { row.SetField("custno", entity.custno); row.SetField("lockboxno", entity.lockboxno); row.SetField("userfield", entity.userfield); }