public Batch Inject <TResult>(ISqlBatchableOperation <TResult> selectOperation, TResult instance) where TResult : class { GetSqlBatchCollection(selectOperation.QueryProvider) .Add(selectOperation, instance); return(this); }
public void Add <TResult>(ISqlBatchableOperation <TResult> batchableOperation, out DeferredResult <IReadOnlyList <TResult> > result) { var resultProcessor = batchableOperation.GetListBatchProcessor(); result = resultProcessor.Result; _queries.Add(new Query(batchableOperation.BuildQuery(), resultProcessor)); }
public void Add <TResult>(ISqlBatchableOperation <TResult> batchableOperation, TResult instance) where TResult : class { var resultProcessor = batchableOperation.GetInjectBatchProcessor(instance); _queries.Add(new Query(batchableOperation.BuildQuery(), resultProcessor)); }
public Batch Single <TResult>(ISqlBatchableOperation <TResult> selectOperation, out DeferredResult <TResult> result) { GetSqlBatchCollection(selectOperation.QueryProvider) .Add(selectOperation, out result); return(this); }
public Batch List <TResult>(ISqlBatchableOperation <TResult> selectOperation, out DeferredResult <IReadOnlyList <TResult> > results) { GetSqlBatchCollection(selectOperation.QueryProvider) .Add(selectOperation, out results); return(this); }
public void Add(ISqlBatchableOperation batchableOperation) { _queries.Add(new Query(batchableOperation.BuildQuery(), null)); }