dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleConnection Class / SetShardingKey Method / SetShardingKey(OracleShardingKey) Method
Sharding key value(s) to specify.

In This Topic
    SetShardingKey(OracleShardingKey) Method
    In This Topic
    Specifies sharding key values for the connection to a sharded Oracle database.
    Syntax
    'Declaration
     
    Public Overloads Sub SetShardingKey( _
       ByVal shardingKey As OracleShardingKey _
    ) 
    public void SetShardingKey( 
       OracleShardingKey shardingKey
    )

    Parameters

    shardingKey
    Sharding key value(s) to specify.
    Remarks
    Note that if you want to specify sharding key values, you must call this method prior to the first opening of the connection; otherwise, it will have no effect. See Database Sharding Support for more information.
    See Also