예제 #1
0
 public static DatabaseBatch <IList <TRecord> > Add <TRecord>(this DatabaseBatch <IList <TRecord> > batch, Query query, DbParameterCollection parameters, string dataColumnName)
 {
     batch.Add(new ListStep <TRecord>(query, parameters, dataColumnName));
     return(batch);
 }
예제 #2
0
 public static DatabaseBatch <TModel> Add <TModel>(this DatabaseBatch <TModel> batch, Query query, QueryResultModelHandler <object, TModel> resultHandler) where TModel : class, new()
 {
     batch.Add(new ModelStep <object, TModel>(query, new ParameterCollection(), resultHandler, null));
     return(batch);
 }
예제 #3
0
 public static DatabaseBatch <TRecord> Add <TRecord>(this DatabaseBatch <TRecord> batch, Query query, string dataColumnName) where TRecord : IComparable
 {
     batch.Add(new RecordStep <TRecord>(query, new ParameterCollection(), dataColumnName));
     return(batch);
 }
예제 #4
0
 public static DatabaseBatch <TModel> Add <TArg, TModel>(this DatabaseBatch <TModel> batch, Query query, QueryResultModelHandler <TArg, TModel> resultHandler, TArg optionalArgument) where TModel : class, new()
 {
     batch.Add(new ModelStep <TArg, TModel>(query, new ParameterCollection(), resultHandler, optionalArgument));
     return(batch);
 }