/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromGlsdtransloadttcriteria(ref DataRow row, Glsdtransloadttcriteria entity) { row.SetField("recordlimit", entity.recordlimit); row.SetField("glyr", entity.glyr); row.SetField("groupnm", entity.groupnm); row.SetField("setno", entity.setno); row.SetField("reversefl", entity.reversefl); row.SetField("userfield", entity.userfield); }
public static Glsdtransloadttcriteria BuildGlsdtransloadttcriteriaFromRow(DataRow row) { Glsdtransloadttcriteria entity = new Glsdtransloadttcriteria(); entity.recordlimit = row.IsNull("recordlimit") ? 0 : row.Field <int>("recordlimit"); entity.glyr = row.IsNull("glyr") ? 0 : row.Field <int>("glyr"); entity.groupnm = row.IsNull("groupnm") ? string.Empty : row.Field <string>("groupnm"); entity.setno = row.IsNull("setno") ? 0 : row.Field <int>("setno"); entity.reversefl = row.Field <bool>("reversefl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }