Beispiel #1
0
 internal static int Count <T>(CountFunc <T> countFunc, T param, CountArguments arguments)
 {
     using (var filter = QueryArguments.ToNativeHandle(arguments))
     {
         countFunc(param, filter, out var count).ThrowIfError("Failed to query count");
         return(count);
     }
 }
Beispiel #2
0
 internal static int Count(CountFunc countFunc, string filter)
 {
     return(Count(countFunc, new CountArguments {
         FilterExpression = filter
     }));
 }