Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaspsectionnextsctn(ref DataRow row, Vaspsectionnextsctn entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("vaverno", entity.vaverno);
     row.SetField("nextseqno", entity.nextseqno);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Vaspsectionnextsctn BuildVaspsectionnextsctnFromRow(DataRow row)
        {
            Vaspsectionnextsctn entity = new Vaspsectionnextsctn();

            entity.prod      = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.vaverno   = row.IsNull("vaverno") ? 0 : row.Field <int>("vaverno");
            entity.nextseqno = row.IsNull("nextseqno") ? 0 : row.Field <int>("nextseqno");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }