コード例 #1
0
 /// <summary>
 /// Gets the number of records that verify the search options.
 /// </summary>
 ///
 /// <param name="userContext">
 /// User context.
 /// </param>
 ///
 /// <param name="options">
 /// Optional search options. If not defined all records are counted.
 /// </param>
 ///
 /// <returns>
 /// The number of records.
 /// </returns>
 public int Count(IUserContext userContext, SearchOptions options = null)
 {
     using (var et = new ExecutionTracerService())
         using (var db = new ExecutionTraceCrud(userContext))
         {
             return(db.Count(options));
         }
 }