Skip to content

AuditedAttribute constructor

Indicates if the field is audited. For DataAuditLog, all fields are audited by default, but if the field has [Audited(false)] it will not be logged. With [Audited(KeepValues = false)], a change of the field is logged, but not its values, e.g. for a field whose values are private, like the ones named like a password or a secret, which are treated so anyway.

public AuditedAttribute(bool value = true)

Remarks

Initializes a new instance of the attribute.

See Also