コード例 #1
0
 private bool Update()
 {
     return(DBOrderOfferProduct.Update(
                this.guid,
                this.orderGuid,
                this.offerGuid,
                this.productGuid,
                this.fullfillType,
                this.fullfillTermsGuid,
                this.created));
 }
コード例 #2
0
 private void GetOrderOfferProduct(
     Guid guid)
 {
     using (IDataReader reader = DBOrderOfferProduct.Get(guid))
     {
         if (reader.Read())
         {
             this.guid              = new Guid(reader["Guid"].ToString());
             this.orderGuid         = new Guid(reader["OrderGuid"].ToString());
             this.offerGuid         = new Guid(reader["OfferGuid"].ToString());
             this.productGuid       = new Guid(reader["ProductGuid"].ToString());
             this.fullfillType      = Convert.ToByte(reader["FullfillType"]);
             this.fullfillTermsGuid = new Guid(reader["FullfillTermsGuid"].ToString());
             this.created           = Convert.ToDateTime(reader["Created"]);
         }
     }
 }
コード例 #3
0
        private bool Create()
        {
            Guid newID = Guid.NewGuid();

            this.guid = newID;

            int rowsAffected = DBOrderOfferProduct.Add(
                this.guid,
                this.orderGuid,
                this.offerGuid,
                this.productGuid,
                this.fullfillType,
                this.fullfillTermsGuid,
                this.created);

            return(rowsAffected > 0);
        }
コード例 #4
0
 public static bool DeleteByOrder(Guid orderGuid)
 {
     return(DBOrderOfferProduct.DeleteByOrder(orderGuid));
 }
コード例 #5
0
 public static bool Delete(Guid guid)
 {
     return(DBOrderOfferProduct.Delete(guid));
 }