예제 #1
0
 public TResponse Perform <TParam, TResponse>(ILinqRequest <TParam, TResponse> request, TParam qrit, String source = null)
     where TParam : IQriteria
 {
     using (var linqProvider = LinqProviderFactory.Create(source))
     {
         return(request.Request(linqProvider, qrit));
     }
 }
예제 #2
0
 public async Task <TResponse> PerformAsync <TParam, TResponse>(ILinqRequest <TParam, TResponse> request, TParam qrit, String source = null)
     where TParam : IQriteria
 {
     using (var linqProvider = LinqProviderFactory.Create(source))
     {
         return(await request.RequestAsync(linqProvider, qrit));
     }
 }
예제 #3
0
 public BaseRequestQuery(ILinqRequest <TParam, TResponse> linqRequest, ILinqRequestHandler requestHandler)
     : this(requestHandler)
 {
     LinqRequest = linqRequest;
 }