TableOperationsT(AdoDataConnection, IEnumerableKeyValuePairString, String) Constructor

Creates a new TableOperationsT.

Definition

Namespace: Gemstone.Data.Model
Assembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.110 -- Release Build+b4bcf74734aa051a9b802d8f3f6ec05bd02af749
public TableOperations(
	AdoDataConnection connection,
	IEnumerable<KeyValuePair<string, string>>? customTokens = null
)

Parameters

connection  AdoDataConnection
AdoDataConnection instance to use for database operations.
customTokens  IEnumerableKeyValuePairString, String  (Optional)
Custom run-time tokens to apply to any modeled AmendExpressionAttribute values.

Remarks

The customTokens can be used to apply run-time tokens to any defined AmendExpressionAttribute values, for example, given the following amendment expression applied to a modeled class:
C#
[AmendExpression("TOP {count}", 
    TargetExpression = TargetExpression.FieldList,
    AffixPosition = AffixPosition.Prefix,
    StatementTypes = StatementTypes.SelectSet)]]
The customTokens key/value pairs could be set as follows at run-time:
C#
int count = 200;
customTokens = new[] { new KeyValuePair<string, string>("{count}", $"{count}") };

Exceptions

ArgumentNullExceptionconnection cannot be null.

See Also