Class DatabaseBatch<TResult>
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 DatabaseBatch<TResult> : BatchBase<int, TResult>, ICollection, IEnumerable<BatchStep<int, TResult>>, IEnumerable
Type Parameters
| Name | Description |
|---|---|
| TResult |
Methods
| Improve this Doc View SourceAdd(BatchStep<Int32, TResult>)
Loads an implementation of BatchStep into the collection.
Declaration
public DatabaseBatch<TResult> Add(BatchStep<int, TResult> step)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchStep<System.Int32, TResult> | step | A BatchStep object. |
Returns
| Type | Description |
|---|---|
| DatabaseBatch<TResult> | 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 DatabaseBatch<TResult> Add(Query query)
Parameters
| Type | Name | Description |
|---|---|---|
| Query | query | The query to execute at this step. |
Returns
| Type | Description |
|---|---|
| DatabaseBatch<TResult> | 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 DatabaseBatch<TResult> 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 |
|---|---|
| DatabaseBatch<TResult> |
Execute(Int32, DbConnection, DbTransaction, String, IDataProviderServiceFactory, ILogger, CancellationToken)
Declaration
protected override Task<TResult> Execute(int shardId, DbConnection connection, DbTransaction transaction, string connectionName, IDataProviderServiceFactory services, ILogger logger, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | 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<TResult> |
Overrides
ArgentSea.BatchBase<System.Int32, TResult>.Execute(System.Int32, 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