/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSasosetupetcc(ref DataRow row, Sasosetupetcc entity) { row.SetField("seqno", entity.seqno); row.SetField("proctypeid", entity.proctypeid); row.SetField("proctypedesc", entity.proctypedesc); row.SetField("transtypeid", entity.transtypeid); row.SetField("transtypedesc", entity.transtypedesc); row.SetField("module", entity.module); row.SetField("selectedfl", entity.selectedfl); row.SetField("userfield", entity.userfield); }
public static Sasosetupetcc BuildSasosetupetccFromRow(DataRow row) { Sasosetupetcc entity = new Sasosetupetcc(); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.proctypeid = row.IsNull("proctypeid") ? string.Empty : row.Field <string>("proctypeid"); entity.proctypedesc = row.IsNull("proctypedesc") ? string.Empty : row.Field <string>("proctypedesc"); entity.transtypeid = row.IsNull("transtypeid") ? string.Empty : row.Field <string>("transtypeid"); entity.transtypedesc = row.IsNull("transtypedesc") ? string.Empty : row.Field <string>("transtypedesc"); entity.module = row.IsNull("module") ? string.Empty : row.Field <string>("module"); entity.selectedfl = row.Field <bool>("selectedfl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }