コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoblanketupdatecriteria(ref DataRow row, Poblanketupdatecriteria entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("shipfmno", entity.shipfmno);
     row.SetField("shiptowhse", entity.shiptowhse);
     row.SetField("billtowhse", entity.billtowhse);
     row.SetField("orderdt", entity.orderdt);
     row.SetField("shipviaty", entity.shipviaty);
     row.SetField("customparam", entity.customparam);
 }
コード例 #2
0
        public static Poblanketupdatecriteria BuildPoblanketupdatecriteriaFromRow(DataRow row)
        {
            Poblanketupdatecriteria entity = new Poblanketupdatecriteria();

            entity.pono        = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf       = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.shipfmno    = row.IsNull("shipfmno") ? 0 : row.Field <int>("shipfmno");
            entity.shiptowhse  = row.IsNull("shiptowhse") ? string.Empty : row.Field <string>("shiptowhse");
            entity.billtowhse  = row.IsNull("billtowhse") ? string.Empty : row.Field <string>("billtowhse");
            entity.orderdt     = row.Field <DateTime?>("orderdt");
            entity.shipviaty   = row.IsNull("shipviaty") ? string.Empty : row.Field <string>("shipviaty");
            entity.customparam = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam");
            return(entity);
        }