private bool Update() { return(DBOrderOfferProduct.Update( this.guid, this.orderGuid, this.offerGuid, this.productGuid, this.fullfillType, this.fullfillTermsGuid, this.created)); }
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"]); } } }
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); }
public static bool DeleteByOrder(Guid orderGuid) { return(DBOrderOfferProduct.DeleteByOrder(orderGuid)); }
public static bool Delete(Guid guid) { return(DBOrderOfferProduct.Delete(guid)); }