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

SoftDeleteRule Constructor

Initializes a new instance of the SoftDeleteRule class.

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

Syntax


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

Parameters

columnName
Type: String
Name of the column.
deletedValue
Type: Object
The value that represents a deleted row.
appliesWhen
Type: Tortuga.Chain.AuditRules..::..OperationTypes
The rule can be applied to delete and/or select operations.

Exceptions


ExceptionCondition
[ArgumentOutOfRangeException]appliesWhen;appliesWhen may only be Select or Delete