public bool EventExists(long id, ref IAuctionTransaction trans) { using (var records = new AuctionEventCollection()) { var filter = new PredicateExpression(AuctionEventFields.Id == id); if (trans != null) { trans.Add(records); } return records.GetDbCount(filter) > 0; } }
public int GetCountByAccount(long accountId, ref IAuctionTransaction trans) { using (var records = new AuctionEventCollection()) { var filter = new PredicateExpression(AuctionEventFields.AccountId == accountId); if (trans != null) { trans.Add(records); } return records.GetDbCount(filter); } }