Shard Class

Definition

Representation of a single shard. Shards are basically locators for data sources i.e. ShardLocations that have been registered with a shard map. Shards are used in mapping as targets of mappings (see PointMapping<TKey> and RangeMapping<TKey>).

public sealed class Shard : IEquatable<Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Shard>
type Shard = class
    interface IShardProvider<ShardLocation>
    interface IShardProvider
    interface ICloneable<Shard>
    interface IEquatable<Shard>
Public NotInheritable Class Shard
Implements IEquatable(Of Shard)
Inheritance
Shard
Implements

Properties

Location

Gets Location of the shard.

Methods

Clone()

Clones the instance.

Equals(Object)

Determines whether the specified object is equal to the current object.

Equals(Shard)

Performs equality comparison with given Shard.

GetHashCode()

Calculates the hash code for this instance.

OpenConnection(String)

Opens a regular SqlConnection to the specified shard, with Validate.

OpenConnection(String, ConnectionOptions)

Opens a regular SqlConnection to the specified shard.

OpenConnectionAsync(String)

Asynchronously opens a regular SqlConnection to the specified shard, with Validate.

OpenConnectionAsync(String, ConnectionOptions)

Asynchronously a regular SqlConnection to the specified shard.

ToString()

Converts the object to its string representation.

Applies to