コード例 #1
0
 public Offer(Price price, Offer clone, decimal cost)
     : this(clone, cost)
 {
     Id          = new OfferComposedId();
     Id.RegionId = price.Id.RegionId;
     PriceId     = price.Id.PriceId;
     Price       = price;
 }
コード例 #2
0
 public Offer(Offer offer, decimal cost)
 {
     Clone(offer);
     Id         = new OfferComposedId();
     Id.OfferId = offer.Id.OfferId++;
     Price      = offer.Price;
     Cost       = cost;
 }
コード例 #3
0
 public Offer(Price price, decimal cost)
 {
     Id          = new OfferComposedId();
     Id.RegionId = price.Id.RegionId;
     Id.OfferId  = (ulong)base.GetHashCode();
     PriceId     = price.Id.PriceId;
     Price       = price;
     Cost        = cost;
 }
コード例 #4
0
 protected bool Equals(OfferComposedId other)
 {
     return(OfferId == other.OfferId && RegionId == other.RegionId);
 }