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

UserDataRule Constructor

Initializes a new instance of the UserDataRule class.

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

Syntax


public UserDataRule(
	string columnName,
	string propertyName,
	OperationTypes appliesWhen
)
Public Sub New ( _
	columnName As String, _
	propertyName As String, _
	appliesWhen As OperationTypes _
)
public:
UserDataRule(
	String^ columnName, 
	String^ propertyName, 
	OperationTypes^ appliesWhen
)

Parameters

columnName
Type: String
Name of the column.
propertyName
Type: String
Name of the property.
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.