public void Update(ref Auction.Domain.Event auctionEvent, ref IAuctionTransaction trans) { using (var records = new AuctionEventCollection()) { var filter = new PredicateExpression(AuctionEventFields.Id == auctionEvent.Id); var evt = new AuctionEventEntity { AccountId = auctionEvent.Id, Name = auctionEvent.Name, Date = auctionEvent.Date, Locked = auctionEvent.Locked, Notes = auctionEvent.Notes, UpdatedBy = auctionEvent.UpdatedBy }; if (trans != null) { trans.Add(records); } records.UpdateMulti(evt, filter); } }