internal void CopyValuesFrom(BiddingSequence seq) { this.Id = seq.Id; this.Answer = seq.Answer; this.Sequence = seq.Sequence; this.CreationDate = seq.CreationDate; }
public Bid(string bidSymbol, string bidSequence, BiddingSequence biddingSequence = null) { this.BidSymbol = bidSymbol; this.BidSequence = bidSequence; this.OriginalObject = biddingSequence ?? new BiddingSequence { Sequence = bidSequence, Id = 0 }; this.NextBids = new List<Bid>(); }
public BiddingSystemSequence AddBiddingSequence(BiddingSequence biddingSequence) { if (this.BiddingSystemSequences == null) this.BiddingSystemSequences = new List<BiddingSystemSequence>(); var biddingSystemSequence = new BiddingSystemSequence(this, biddingSequence); this.BiddingSystemSequences.Add(biddingSystemSequence); return biddingSystemSequence; }
public BiddingSystemSequence AddBiddingSequence(BiddingSequence biddingSequence) { if (this.BiddingSystemSequences == null) { this.BiddingSystemSequences = new List <BiddingSystemSequence>(); } var biddingSystemSequence = new BiddingSystemSequence(this, biddingSequence); this.BiddingSystemSequences.Add(biddingSystemSequence); return(biddingSystemSequence); }
public BiddingSequence CreateOrUpdateBiddingSequence(BiddingSequence biddingSequence) { if(biddingSequence.Id>0) { var biddingSequenceProxy = db.BiddingSequences.Find(biddingSequence.Id); biddingSequenceProxy.CopyValuesFrom(biddingSequence); } else db.BiddingSequences.Add(biddingSequence); db.SaveChanges(); return biddingSequence; }
public BiddingSystemSequence(BiddingSystem biddingSystem, BiddingSequence biddingSequence) { this.BiddingSystem = biddingSystem; this.BiddingSequence = biddingSequence; }