Search Results for

    Show / Hide Table of Contents

    Interface IAuditData

    A complex type definition for holding the results of running a query that returns the audit history of a specified item

    Can be executed from GetAuditData(Nullable<Guid>, Guid, Guid, String)

    Namespace: LemonEdge.API.ComplexTypes
    Assembly: API.dll
    Syntax
    [ComplexDefinition(ImageType.History, "Audit History")]
    public interface IAuditData

    Properties

    AccountID

    The account id this item belongs to

    Declaration
    [Key]
    [Column(Order = 0)]
    long AccountID { get; set; }
    Property Value
    Type Description
    System.Int64

    Action

    The type of change that was made to the item (Insert, Update, Delete, or Lock)

    Declaration
    AuditAction Action { get; set; }
    Property Value
    Type Description
    AuditAction

    AuditObjectType

    The unique global id of the entity type with changes

    Declaration
    Guid AuditObjectType { get; set; }
    Property Value
    Type Description
    System.Guid

    ID

    The unique global id of this item

    Declaration
    [Key]
    [Column(Order = 1)]
    Guid ID { get; set; }
    Property Value
    Type Description
    System.Guid

    ItemPropName

    The name of the property that changed

    Declaration
    [Key]
    [Column(Order = 3)]
    [EntityProperty(SQLType.NVarChar, false, FriendlyLabel = "Property")]
    string ItemPropName { get; set; }
    Property Value
    Type Description
    System.String

    Label

    The label of this item

    Declaration
    string Label { get; set; }
    Property Value
    Type Description
    System.String

    LastUpdated

    The date/time stamp this change occured on

    Declaration
    [Key]
    [Column(Order = 2)]
    DateTimeOffset LastUpdated { get; set; }
    Property Value
    Type Description
    System.DateTimeOffset

    LinkType

    If this property holds a realtionship link to another item, this holds the if for that entity type that it links to

    Declaration
    Guid? LinkType { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Guid>

    ModifiedByUserID

    The user who made the change

    Declaration
    Guid ModifiedByUserID { get; set; }
    Property Value
    Type Description
    System.Guid

    ModifiedByUserID_Label

    Holds the name of the user that made the change

    Declaration
    [EntityProperty(SQLType.NVarChar, false, FriendlyLabel = "Modified By")]
    string ModifiedByUserID_Label { get; set; }
    Property Value
    Type Description
    System.String

    NewLink

    If this property holds a relationship link to another item, this holds the id of the item after the change

    Declaration
    Guid? NewLink { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Guid>

    NewLink_Label

    If this property is a link to another entity, this will hold the label of that item after the change so it is identifiable to the user

    Declaration
    [EntityProperty(SQLType.NVarChar, false, FriendlyLabel = "New Info")]
    string NewLink_Label { get; set; }
    Property Value
    Type Description
    System.String

    NewValue

    The new value of the property after this change

    If this property is a link to another entity, this will hold the label of that item so it is identifiable to the user

    Declaration
    string NewValue { get; set; }
    Property Value
    Type Description
    System.String

    OldLink

    If this property holds a relationship link to another item, this holds the id of the item before the change

    Declaration
    Guid? OldLink { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Guid>

    OldLink_Label

    If this property is a link to another entity, this will hold the label of that item before the change so it is identifiable to the user

    Declaration
    [EntityProperty(SQLType.NVarChar, false, FriendlyLabel = "Old Info")]
    string OldLink_Label { get; set; }
    Property Value
    Type Description
    System.String

    OldValue

    The old value of the property before the change.

    If this property is a link to another entity, this will hold the label of that item so it is identifiable to the user

    Will be null if the change was an insert.
    Declaration
    string OldValue { get; set; }
    Property Value
    Type Description
    System.String

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    In This Article
    Back to top © LemonEdge Technology. All rights reserved.