Class XmlAuditTrailWriter
Represents an class that can write an audit trail entry for two given entity objects.
Inheritance
System.Object
XmlAuditTrailWriter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.AuditTrail
Assembly: TimeCockpit.Data.dll
Syntax
public class XmlAuditTrailWriter
Constructors
XmlAuditTrailWriter()
Declaration
public XmlAuditTrailWriter()
Methods
WriteAuditTrail(EntityObject, EntityObject, XmlWriter, out IEnumerable<String>, DatabaseOperation)
Takes two instance of an EntityObject (old and new) and writes an entry for every differing value.
Declaration
public static void WriteAuditTrail(EntityObject oldEntityObject, EntityObject newEntityObject, XmlWriter xmlWriter, out IEnumerable<string> changedMemberNames, DatabaseOperation operationType = DatabaseOperation.Update)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityObject | oldEntityObject | The old EntityObject. |
| EntityObject | newEntityObject | The new EntityObject. |
| System.Xml.XmlWriter | xmlWriter | The XML writer to write the xml to. |
| System.Collections.Generic.IEnumerable<System.String> | changedMemberNames | Names of changed members. |
| DatabaseOperation | operationType | A value indicating the type of the operation. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown if a AuditTrail should be written from two EntityObjects with different ids. |
| System.ArgumentException | Thrown if xmlWriter is null. |