/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPoloadtranstypes(ref DataRow row, Poloadtranstypes entity) { row.SetField("seqno", entity.seqno); row.SetField("transtype", entity.transtype); row.SetField("transtypedesc", entity.transtypedesc); row.SetField("userfield", entity.userfield); }
public static Poloadtranstypes BuildPoloadtranstypesFromRow(DataRow row) { Poloadtranstypes entity = new Poloadtranstypes(); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.transtype = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype"); entity.transtypedesc = row.IsNull("transtypedesc") ? string.Empty : row.Field <string>("transtypedesc"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }