Show / Hide Table of Contents

    Class ShardSetsBase<TShard, TConfiguration>.ShardSetReadFirst

    This class hosts the concurrent shard set read methods which return the fist valid result.

    Inheritance
    System.Object
    ShardSetsBase<TShard, TConfiguration>.ShardSetReadFirst
    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 ShardSetReadFirst

    Methods

    | Improve this Doc View Source

    MapOutputAsync<TModel>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters .

    Declaration
    public Task<TModel> MapOutputAsync<TModel>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    | Improve this Doc View Source

    MapOutputAsync<TModel>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters.

    Declaration
    public Task<TModel> MapOutputAsync<TModel>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    | Improve this Doc View Source

    MapOutputAsync<TModel>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    | Improve this Doc View Source

    MapOutputAsync<TModel>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters
    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters .

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult

    The first result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult

    The first result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult

    The first result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters
    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult

    The first result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters .

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters
    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters .

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters
    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters .

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters
    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters .

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters
    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters .

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters
    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters .

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters
    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters .

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
        where TReaderResult7 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult7

    The eighth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns the first non-null result created using Mapping attributes and output parameters.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
        where TReaderResult7 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult7

    The eighth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
        where TReaderResult7 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult7

    The eighth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes and output parameters to build results.

    Declaration
    public Task<TModel> MapOutputAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
        where TReaderResult7 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters
    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    A list of the non-null object results returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult7

    The eighth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    | Improve this Doc View Source

    MapReaderAsync<TModel>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    | Improve this Doc View Source

    MapReaderAsync<TModel>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    | Improve this Doc View Source

    MapReaderAsync<TModel>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query, DbParameterCollection, ShardsValues<TShard>, String, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
        where TReaderResult7 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult7

    The eighth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query, DbParameterCollection, ShardsValues<TShard>, CancellationToken)

    Query across the shards identified by collection of shard parameter values, returns first non-null result using Mapping attributes and the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
        where TReaderResult7 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult7

    The eighth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query, DbParameterCollection, String, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query query, DbParameterCollection parameters, string shardParameterName, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
        where TReaderResult7 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult7

    The eighth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query, DbParameterCollection, CancellationToken)

    Query across all shards in the shard set, using mapping attributes to build results from the DataReader.

    Declaration
    public Task<TModel> MapReaderAsync<TModel, TReaderResult0, TReaderResult1, TReaderResult2, TReaderResult3, TReaderResult4, TReaderResult5, TReaderResult6, TReaderResult7>(Query query, DbParameterCollection parameters, CancellationToken cancellationToken)
        where TModel : class, new()
        where TReaderResult0 : class, new()
        where TReaderResult1 : class, new()
        where TReaderResult2 : class, new()
        where TReaderResult3 : class, new()
        where TReaderResult4 : class, new()
        where TReaderResult5 : class, new()
        where TReaderResult6 : class, new()
        where TReaderResult7 : class, new()
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non=null object result returned from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type for the list

    TReaderResult0

    The first result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult1

    The second result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult2

    The third result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult3

    The forth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult4

    The fifth result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult5

    The sixth result set from data reader. This it will be mapped to any property with a List of this type.

    TReaderResult6

    The seventh result set from data reader. This will be mapped to any property with a List of this type.

    TReaderResult7

    The eighth result set from data reader. This will be mapped to any property with a List of this type.

    | Improve this Doc View Source

    QueryAsync<TModel>(Query, DbParameterCollection, QueryResultModelHandler<TShard, Object, TModel>, CancellationToken)

    Query across the specified shards, returning the first non-null result created by a handler delegate .

    Declaration
    public Task<TModel> QueryAsync<TModel>(Query query, DbParameterCollection parameters, QueryResultModelHandler<TShard, object, TModel> resultHandler, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    QueryResultModelHandler<TShard, System.Object, TModel> resultHandler

    The thread-safe delegate that converts the data results into the return object type.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non-null object obtained from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type.

    | Improve this Doc View Source

    QueryAsync<TModel>(Query, DbParameterCollection, ShardsValues<TShard>, QueryResultModelHandler<TShard, Object, TModel>, CancellationToken)

    Query across the specified shards, returning the first non-null result created by a handler delegate .

    Declaration
    public Task<TModel> QueryAsync<TModel>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, QueryResultModelHandler<TShard, object, TModel> resultHandler, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    QueryResultModelHandler<TShard, System.Object, TModel> resultHandler

    The thread-safe delegate that converts the data results into the return object type.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non-null object obtained from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type.

    | Improve this Doc View Source

    QueryAsync<TModel>(Query, DbParameterCollection, ShardsValues<TShard>, String, QueryResultModelHandler<TShard, Object, TModel>, CancellationToken)

    Query across the specified shards, returning the first non-null result created by a handler delegate .

    Declaration
    public Task<TModel> QueryAsync<TModel>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, QueryResultModelHandler<TShard, object, TModel> resultHandler, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    QueryResultModelHandler<TShard, System.Object, TModel> resultHandler

    The thread-safe delegate that converts the data results into the return object type.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non-null object obtained from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type.

    | Improve this Doc View Source

    QueryAsync<TModel>(Query, DbParameterCollection, String, QueryResultModelHandler<TShard, Object, TModel>, CancellationToken)

    Query across all shards in the shard set, returning the first non-null result created by a handler delegate .

    Declaration
    public Task<TModel> QueryAsync<TModel>(Query query, DbParameterCollection parameters, string shardParameterName, QueryResultModelHandler<TShard, object, TModel> resultHandler, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    QueryResultModelHandler<TShard, System.Object, TModel> resultHandler

    The thread-safe delegate that converts the data results into the return object type.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non-null object obtained from any shard.

    Type Parameters
    Name Description
    TModel

    The data object return type.

    | Improve this Doc View Source

    QueryAsync<TArg, TModel>(Query, DbParameterCollection, QueryResultModelHandler<TShard, TArg, TModel>, TArg, CancellationToken)

    Query across all shards in the shard set, returning the first non-null result created by a handler delegate .

    Declaration
    public Task<TModel> QueryAsync<TArg, TModel>(Query query, DbParameterCollection parameters, QueryResultModelHandler<TShard, TArg, TModel> resultHandler, TArg dataObject, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    QueryResultModelHandler<TShard, TArg, TModel> resultHandler

    The thread-safe delegate that converts the data results into the return object type.

    TArg dataObject

    An object of type TArg to be passed to the resultHandler, which may contain additional data.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non-null object obtained from any shard.

    Type Parameters
    Name Description
    TArg

    The optional object type to be passed to the handler.

    TModel

    The data object return type.

    | Improve this Doc View Source

    QueryAsync<TArg, TModel>(Query, DbParameterCollection, ShardsValues<TShard>, QueryResultModelHandler<TShard, TArg, TModel>, TArg, CancellationToken)

    Query across the specified shards, returning the first non-null result created by a handler delegate .

    Declaration
    public Task<TModel> QueryAsync<TArg, TModel>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, QueryResultModelHandler<TShard, TArg, TModel> resultHandler, TArg dataObject, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    QueryResultModelHandler<TShard, TArg, TModel> resultHandler

    The thread-safe delegate that converts the data results into the return object type.

    TArg dataObject

    An object of type TArg to be passed to the resultHandler, which may contain additional data.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non-null object obtained from any shard.

    Type Parameters
    Name Description
    TArg

    The optional object type to be passed to the handler.

    TModel

    The data object return type.

    | Improve this Doc View Source

    QueryAsync<TArg, TModel>(Query, DbParameterCollection, ShardsValues<TShard>, String, QueryResultModelHandler<TShard, TArg, TModel>, TArg, CancellationToken)

    Query across the specified shards, returning the first non-null result created by a handler delegate .

    Declaration
    public Task<TModel> QueryAsync<TArg, TModel>(Query query, DbParameterCollection parameters, ShardsValues<TShard> shardParameterValues, string shardParameterName, QueryResultModelHandler<TShard, TArg, TModel> resultHandler, TArg dataObject, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    ShardsValues<TShard> shardParameterValues

    A list of shards to be queried, and shard-specific values to use for named parameters.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    QueryResultModelHandler<TShard, TArg, TModel> resultHandler

    The thread-safe delegate that converts the data results into the return object type.

    TArg dataObject

    An object of type TArg to be passed to the resultHandler, which may contain additional data.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non-null object obtained from any shard.

    Type Parameters
    Name Description
    TArg

    The optional object type to be passed to the handler.

    TModel

    The data object return type.

    | Improve this Doc View Source

    QueryAsync<TArg, TModel>(Query, DbParameterCollection, String, QueryResultModelHandler<TShard, TArg, TModel>, TArg, CancellationToken)

    Query across all shards in the shard set, returning the first non-null result created by a handler delegate .

    Declaration
    public Task<TModel> QueryAsync<TArg, TModel>(Query query, DbParameterCollection parameters, string shardParameterName, QueryResultModelHandler<TShard, TArg, TModel> resultHandler, TArg dataObject, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Query query

    The statement or procedure to be invoked on every instance.

    System.Data.Common.DbParameterCollection parameters

    The parameters to be passed to the procedure or statement.

    System.String shardParameterName

    The name of the ShardId parameter, to be set for each connection before it is called.

    QueryResultModelHandler<TShard, TArg, TModel> resultHandler

    The thread-safe delegate that converts the data results into the return object type.

    TArg dataObject

    An object of type TArg to be passed to the resultHandler, which may contain additional data.

    System.Threading.CancellationToken cancellationToken

    A token which allows the query to be cancelled.

    Returns
    Type Description
    System.Threading.Tasks.Task<TModel>

    The first non-null object obtained from any shard.

    Type Parameters
    Name Description
    TArg

    The optional object type to be passed to the handler.

    TModel

    The data object return type.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX