C# 클래스 Tortuga.Chain.AuditRules.ValueRule

Applies the indicated value to the column, overriding any previously applied value.
상속: ColumnRule
파일 보기 프로젝트 열기: docevaad/Chain

공개 메소드들

메소드 설명
GenerateValue ( object argumentValue, object userValue, object currentValue ) : object

Generates the value to be used for the operation.

ValueRule ( string columnName, ColumnValueGenerator valueFactory, OperationTypes appliesWhen ) : System

Initializes a new instance of the ValueRule class.

ValueRule ( string columnName, object value, OperationTypes appliesWhen ) : System

Initializes a new instance of the UserDataRule class.

This will have no effect on hard deletes.

메소드 상세

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

ValueRule() 공개 메소드

Initializes a new instance of the ValueRule class.
appliesWhen;appliesWhen may only be a combination of Insert, Update, or Delete
public ValueRule ( string columnName, ColumnValueGenerator valueFactory, OperationTypes appliesWhen ) : System
columnName string Name of the column.
valueFactory ColumnValueGenerator The value factory.
appliesWhen OperationTypes The applies when.
리턴 System

ValueRule() 공개 메소드

Initializes a new instance of the UserDataRule class.
This will have no effect on hard deletes.
appliesWhen;appliesWhen may only be a combination of Insert, Update, or Delete
public ValueRule ( string columnName, object value, OperationTypes appliesWhen ) : System
columnName string Name of the column.
value object The value to apply.
appliesWhen OperationTypes The rule can be applied to insert, update, and/or soft delete operations.
리턴 System