public void Delete(long Id, ref IAuctionTransaction trans) { using (var records = new CategoryCollection()) { var filter = new PredicateExpression(CategoryFields.Id == Id); if (trans != null) { trans.Add(records); } records.DeleteMulti(filter); } }