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

ValueRule Constructor (String, Object, OperationTypes)

Initializes a new instance of the UserDataRule class.

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

Syntax


public ValueRule(
	string columnName,
	Object value,
	OperationTypes appliesWhen
)
Public Sub New ( _
	columnName As String, _
	value As Object, _
	appliesWhen As OperationTypes _
)
public:
ValueRule(
	String^ columnName, 
	Object^ value, 
	OperationTypes^ appliesWhen
)

Parameters

columnName
Type: String
Name of the column.
value
Type: Object
The value to apply.
appliesWhen
Type: Tortuga.Chain.AuditRules..::..OperationTypes
The rule can be applied to insert, update, and/or soft delete operations.

Exceptions


ExceptionCondition
[ArgumentOutOfRangeException]appliesWhen;appliesWhen may only be a combination of Insert, Update, or Delete

Remarks


This will have no effect on hard deletes.