Search Results for

    Show / Hide Table of Contents

    Interface IBaseObject

    Any entity that has be inherited by other entities should also implement this interface.

    The common properties should all be implemented in a common interface that the base and inheriting entities implement, for instance see IObjectEntityBase for the common object entity properties.

    The base entity itself should implement the common interface, any additional properties, *and* this BaseObject interface. See IObjectEntity for the base object entity type.

    The inheriting entity should implement the common interface, any additional properties, *and* the IInheritingObject interface. See ICompany for an entity that inherits object entity and has company specific properties.

    This ensures that given an id of a IObjectEntity we can get the common information, and it will tell us the inheriting type is a company (InheritingObjectTypeID), and we can then get all the rest of the information from the company itself
    Inherited Members
    IBaseEntity.AccountID
    IBaseEntity.ID
    IBaseEntity.LastUpdated
    IBaseEntity.ModifiedByUserID
    IBaseEntity.CanvasID
    IBaseEntity.GetLabel(String)
    IBaseEntity.SetLabel(String, String)
    IBaseEntity.SetSilentLabel(String, String)
    System.IEquatable<LemonEdge.API.Core.IBaseEntity>.Equals(LemonEdge.API.Core.IBaseEntity)
    System.ComponentModel.INotifyPropertyChanged.PropertyChanged
    System.ComponentModel.INotifyPropertyChanging.PropertyChanging
    ICloneableAsync.Clone(Object)
    ICloneableAsync.CopyFromSource(Object)
    ICanTrackProperties.HasTrackedPropertyChanged(String)
    ICanTrackProperties.OriginalTrackedPropertyValue(String)
    ICanTrackProperties.OriginalTrackedPropertyValue<T>(String)
    ICanTrackProperties.ClearTrackedOriginalValues()
    ICanTrackProperties.GetAllOriginalTrackedPropertyValues()
    Namespace: LemonEdge.API.Entities
    Assembly: API.dll
    Syntax
    public interface IBaseObject : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties

    Properties

    InheritingObjectTypeID

    Any object that inherits this interface holds part of a record, the common base part

    This holds the type of record which holds the rest

    The IDs of both the inheriting and base objects always are the same
    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false, IsEntityTypeLink = true)]
    Guid InheritingObjectTypeID { get; set; }
    Property Value
    Type Description
    System.Guid

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)

    See Also

    IInheritingObject
    IsBaseInterfaceAttribute
    In This Article
    Back to top © LemonEdge Technology. All rights reserved.