C# Класс Tortuga.Chain.AuditRules.SoftDeleteRule

If a column matching this rule is found, then soft deletes will be applied instead of hard deletes.
Наследование: ColumnRule
Показать файл Открыть проект

Открытые методы

Метод Описание
GenerateValue ( object argumentValue, object userValue, object currentValue ) : object

Generates the value to be used for the operation.

SoftDeleteRule ( string columnName, object deletedValue, OperationTypes appliesWhen ) : System

Initializes a new instance of the SoftDeleteRule class.

Описание методов

GenerateValue() публичный Метод

Generates the value to be used for the operation.
public GenerateValue ( object argumentValue, object userValue, object currentValue ) : object
argumentValue object The argument value.
userValue object The user value.
currentValue object The current value. Used when the rule is conditionally applied.
Результат object

SoftDeleteRule() публичный Метод

Initializes a new instance of the SoftDeleteRule class.
appliesWhen;appliesWhen may only be Select or Delete
public SoftDeleteRule ( string columnName, object deletedValue, OperationTypes appliesWhen ) : System
columnName string Name of the column.
deletedValue object The value that represents a deleted row.
appliesWhen OperationTypes The rule can be applied to delete and/or select operations.
Результат System