Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

SqlServerAppenders..::..AsCountDistinctApproximate Method (TableDbCommandBuilder<(Of <(<'SqlCommand, SqlParameter, SqlServerLimitOption>)>)>)

Return the approximate row count using the APPROX_COUNT_DISTINCT function.

Namespace:  Tortuga.Chain.SqlServer
Assembly:  Tortuga.Chain.SqlServer.MDS (in Tortuga.Chain.SqlServer.MDS.dll)

Syntax


public static ILink<long> AsCountDistinctApproximate(
	this TableDbCommandBuilder<SqlCommand, SqlParameter, SqlServerLimitOption> tableDbCommand
)
<ExtensionAttribute> _
Public Shared Function AsCountDistinctApproximate ( _
	tableDbCommand As TableDbCommandBuilder(Of SqlCommand, SqlParameter, SqlServerLimitOption) _
) As ILink(Of Long)
[ExtensionAttribute]
public:
static ILink<long long^>^ AsCountDistinctApproximate(
	TableDbCommandBuilder<SqlCommand^, SqlParameter^, SqlServerLimitOption^>^ tableDbCommand
)

Parameters

tableDbCommand
Type: Tortuga.Chain.CommandBuilders..::..TableDbCommandBuilder<(Of <(<'SqlCommand, SqlParameter, SqlServerLimitOption>)>)>
The table database command.

Remarks


This is only available on tables with a single primary key.