コード例 #1
0
        void ICollectionModifier <Deal> .Update(Deal entity)
        {
            var modified = Deals.First(d => d.Id == entity.Id);

            modified.Purchaser   = entity.Purchaser;
            modified.Seller      = entity.Seller;
            modified.SelledStock = entity.SelledStock;
            modified.Cost        = entity.Cost;
        }
コード例 #2
0
        public void Update(Deal entity)
        {
            var modified = Deals.First(d => d.Id == entity.Id);

            modified.Buyer  = entity.Buyer;
            modified.Seller = entity.Seller;
            modified.Stock  = entity.Stock;
            modified.Sum    = entity.Sum;
        }