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

SqlBuilder<(Of <(<'TDbType>)>)>..::..OverrideArgumentValue Method

Overrides the previous selected values with the values in the indicated object.

Namespace:  Tortuga.Chain.CommandBuilders
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


public void OverrideArgumentValue(
	IDataSource dataSource,
	OperationTypes operationType,
	Nullable<Object> argumentValue
)
Public Sub OverrideArgumentValue ( _
	dataSource As IDataSource, _
	operationType As OperationTypes, _
	argumentValue As Nullable(Of Object) _
)
public:
void OverrideArgumentValue(
	IDataSource^ dataSource, 
	OperationTypes^ operationType, 
	Nullable<Object^> argumentValue
)

Parameters

dataSource
Type: Tortuga.Chain.DataSources..::..IDataSource
The data source.
operationType
Type: Tortuga.Chain.AuditRules..::..OperationTypes
The type of operation being performed.
argumentValue
Type: Nullable<(Of <(<'Object>)>)>
The value.

Exceptions


ExceptionCondition
[ArgumentNullException]value;value is null.
Tortuga.Chain..::..MappingExceptionThis is thrown is no properties could be matched to a column. If strict mode, all properties must match columns.

Remarks


This will not alter the IsPrimaryKey, Insert, or Update column settings. If the object implements IReadOnlyDictionary[string, object], ApplyArgumentDictionary will be implicitly called instead.