Beispiel #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));
     }
 }
Beispiel #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));
     }
 }
Beispiel #3
0
 public BaseRequestQuery(ILinqRequest <TParam, TResponse> linqRequest, ILinqRequestHandler requestHandler)
     : this(requestHandler)
 {
     LinqRequest = linqRequest;
 }