Class ShardSetBatch<TShard>
Implements
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ArgentSea
Assembly: ArgentSea.dll
Syntax
public class ShardSetBatch<TShard> : BatchBase<TShard, object>, ICollection, IEnumerable<BatchStep<TShard, object>>, IEnumerable where TShard : IComparable
Type Parameters
Name | Description |
---|---|
TShard |
Methods
| Improve this Doc View SourceAdd(BatchStep<TShard, Object>)
Loads an implementation of BatchStep into the collection.
Declaration
public ShardSetBatch<TShard> Add(BatchStep<TShard, object> step)
Parameters
Type | Name | Description |
---|---|---|
BatchStep<TShard, System.Object> | step | A BatchStep object. |
Returns
Type | Description |
---|---|
ShardSetBatch<TShard> | A reference to the collection, for a fluent API. |
Add(Query)
Loads a stp to execute a SQL query. No results are returned.
Declaration
public ShardSetBatch<TShard> Add(Query query)
Parameters
Type | Name | Description |
---|---|---|
Query | query | The query to execute at this step. |
Returns
Type | Description |
---|---|
ShardSetBatch<TShard> | A reference to the collection, for a fluent API. |
Add(Query, DbParameterCollection)
Add a step to execute a SQL Query. This query does not return a result.
Declaration
public ShardSetBatch<TShard> Add(Query query, DbParameterCollection parameters)
Parameters
Type | Name | Description |
---|---|---|
Query | query | The query to add. |
System.Data.Common.DbParameterCollection | parameters | The parameters for the query. |
Returns
Type | Description |
---|---|
ShardSetBatch<TShard> |
Execute(TShard, DbConnection, DbTransaction, String, IDataProviderServiceFactory, ILogger, CancellationToken)
Declaration
protected override Task<object> Execute(TShard shardId, DbConnection connection, DbTransaction transaction, string connectionName, IDataProviderServiceFactory services, ILogger logger, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
TShard | shardId | |
System.Data.Common.DbConnection | connection | |
System.Data.Common.DbTransaction | transaction | |
System.String | connectionName | |
IDataProviderServiceFactory | services | |
Microsoft.Extensions.Logging.ILogger | logger | |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> |
Overrides
ArgentSea.BatchBase<TShard, System.Object>.Execute(TShard, System.Data.Common.DbConnection, System.Data.Common.DbTransaction, System.String, ArgentSea.IDataProviderServiceFactory, Microsoft.Extensions.Logging.ILogger, System.Threading.CancellationToken)
Implements
System.Collections.ICollection
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable