public static ShardBatch <IList <ShardKey <TRecord> > > Add <TRecord>(this ShardBatch <IList <ShardKey <TRecord> > > batch, Query query, char dataOrigin, string shardIdColumnName, string recordIdColumnName) where TRecord : IComparable { batch.Add(new KeyListStep <TRecord>(query, new ParameterCollection(), dataOrigin, shardIdColumnName, recordIdColumnName)); return(batch); }
public static ShardBatch <TModel> Add <TArg, TModel>(this ShardBatch <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); }
public static ShardBatch <TModel> Add <TModel>(this ShardBatch <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); }
public static ShardBatch <ShardKey <TRecord, TChild> > Add <TRecord, TChild>(this ShardBatch <ShardKey <TRecord, TChild> > batch, Query query, char dataOrigin, string recordIdColumnName, string childIdColumnName) where TRecord : IComparable where TChild : IComparable { batch.Add(new ChildStep <TRecord, TChild>(query, new ParameterCollection(), dataOrigin, null, recordIdColumnName, childIdColumnName)); return(batch); }
public static ShardBatch <ShardKey <TRecord> > Add <TRecord>(this ShardBatch <ShardKey <TRecord> > batch, Query query, DbParameterCollection parameters, char dataOrigin, string recordIdColumnName) where TRecord : IComparable { batch.Add(new KeyStep <TRecord>(query, parameters, dataOrigin, null, recordIdColumnName)); return(batch); }
public static ShardBatch <List <TRecord> > Add <TRecord>(this ShardBatch <List <TRecord> > batch, Query query, DbParameterCollection parameters, string dataColumnName) { ((IList)batch).Add(new ListStep <TRecord>(query, parameters, dataColumnName)); return(batch); }
public static ShardBatch <TRecord> Add <TRecord>(this ShardBatch <TRecord> batch, Query query, string dataColumnName) where TRecord : IComparable { batch.Add(new RecordStep <TRecord>(query, new ParameterCollection(), dataColumnName)); return(batch); }
public static ShardBatch <List <ShardKey <TRecord, TChild> > > Add <TRecord, TChild>(this ShardBatch <List <ShardKey <TRecord, TChild> > > batch, Query query, DbParameterCollection parameters, char dataOrigin, string recordIdColumnName, string childIdColumnName) where TRecord : IComparable where TChild : IComparable { ((IList)batch).Add(new ChildListStep <TRecord, TChild>(query, parameters, dataOrigin, null, recordIdColumnName, childIdColumnName)); return(batch); }