TableOperationsT(AdoDataConnection, IEnumerableKeyValuePairString, String) Constructor
Namespace: Gemstone.Data.ModelAssembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.137 -- Release Build+bf396311d630d9a0959afedb17412b40a2acb327
public TableOperations(
AdoDataConnection connection,
IEnumerable<KeyValuePair<string, string>>? customTokens = null
)
Public Sub New (
connection As AdoDataConnection,
Optional customTokens As IEnumerable(Of KeyValuePair(Of String, String)) = Nothing
)
public:
TableOperations(
AdoDataConnection^ connection,
IEnumerable<KeyValuePair<String^, String^>>^ customTokens = nullptr
)
Gemstone.Data.Model.TableOperations = function(connection, customTokens);
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.
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:
[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:
int count = 200;
customTokens = new[] { new KeyValuePair<string, string>("{count}", $"{count}") };
ArgumentNullException | connection cannot be null. |