コード例 #1
0
 public int GetAllowableEventCount(long accountId,
                                   ref IAuctionTransaction trans)
 {
     using (var records = new AccountCollection())
     {
         var filter = new PredicateExpression(AccountFields.Id == accountId);
         if (trans != null)
         {
             trans.Add(records);
         }
         records.GetMulti(filter, 1);
         return records.ToList().First().AllowableEvents;
     }
 }