C# Class Tortuga.Chain.AuditRules.DateTimeRule

Applies the current DateTime value to the indicated column.
Inheritance: ColumnRule
Afficher le fichier Open project: docevaad/Chain

Méthodes publiques

Méthode Description
DateTimeRule ( string columnName, DateTimeKind kind, OperationTypes appliesWhen ) : System

Initializes a new instance of the UserDataRule class.

This will have no effect on hard deletes.

GenerateValue ( object argumentValue, object userValue, object currentValue ) : object

Generates the value to be used for the operation.

Method Details

DateTimeRule() public méthode

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 DateTimeRule ( string columnName, DateTimeKind kind, OperationTypes appliesWhen ) : System
columnName string Name of the column.
kind DateTimeKind The kind.
appliesWhen OperationTypes The rule can be applied to insert, update, and/or soft delete operations.
Résultat System

GenerateValue() public méthode

Generates the value to be used for the operation.
kind is set incorrectly
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.
Résultat object