C# Class Tortuga.Chain.AuditRules.UserDataRule

This is a rule that overrides argument values with data on the user object.
This is usually used for CreatedBy/LastModifiedBy style columns
Inheritance: ColumnRule
Afficher le fichier Open project: docevaad/Chain

Méthodes publiques

Méthode Description
UserDataRule ( string columnName, string propertyName, OperationTypes appliesWhen ) : System

Initializes a new instance of the UserDataRule class.

This will have no effect on hard deletes.

Private Methods

Méthode Description
GenerateValue ( object argumentValue, object userValue, object currentValue ) : object

Method Details

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