public void Update(ref Category category, ref IAuctionTransaction trans) { using (var records = new CategoryCollection()) { var filter = new PredicateExpression(CategoryFields.Id == category.Id); var c = new CategoryEntity { AccountId = category.AccountId, Name = category.Name }; if (trans != null) { trans.Add(records); } records.UpdateMulti(c, filter); } }