Search Results for

    Show / Hide Table of Contents

    Class CustomLookupQuery

    Inheritance
    object
    BaseEntity
    BaseEntityWithPermissions
    CustomLookupQuery
    Implements
    ICustomLookupQuery
    IBaseEntityWithPermissions
    IBaseEntity
    IEquatable<IBaseEntity>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ISetCopier
    ICloneableAsync<ICustomLookupQuery>
    Inherited Members
    BaseEntityWithPermissions.IsLocked(object)
    BaseEntityWithPermissions.CanWriteItem(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.PreLoadPermissions<T>(IEnumerable<T>, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.CanDeleteItem(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.CanChangeItemPermissions(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntity.HISTORY_ENDROWUPDATE_COLNAME
    BaseEntity.HasTrackedPropertyChanged(string)
    BaseEntity.OriginalTrackedPropertyValue(string)
    BaseEntity.OriginalTrackedPropertyValue<T>(string)
    BaseEntity.ClearTrackedOriginalValues()
    BaseEntity.GetAllOriginalTrackedPropertyValues()
    BaseEntity.GetLabel(string)
    BaseEntity.SetLabel(string, string)
    BaseEntity.SetSilentLabel(string, string)
    BaseEntity.ResetChangedTrackedPropertiesToOriginalValues()
    BaseEntity.AddTrackedOriginalValue(string, object)
    BaseEntity.SnapshotProperties()
    BaseEntity.RestoreFromSnapshot(Dictionary<string, object>)
    BaseEntity.IsBasePropertyName(string)
    BaseEntity.IsBaseRelationshipID(string)
    BaseEntity.OnPropertyChanging(string)
    BaseEntity.OnPropertyChanged(string)
    BaseEntity.Equals(IBaseEntity)
    BaseEntity.GetHashCode()
    BaseEntity.Equals(object)
    BaseEntity.Clone(object)
    BaseEntity.CopyFromSource(object)
    BaseEntity.TrackChanges
    BaseEntity.ModifiedByUserID_Label
    BaseEntity.ModifiedByUserID_Label_Silent
    BaseEntity.CanvasID_Label
    BaseEntity.CanvasID_Label_Silent
    BaseEntity.AlgorithmStepID_Label
    BaseEntity.AlgorithmStepID_Label_Silent
    BaseEntity.SafeID_Label
    BaseEntity.SafeID_Label_Silent
    BaseEntity.AccountID
    BaseEntity.ID
    BaseEntity.LastUpdated
    BaseEntity.ModifiedByUserID
    BaseEntity.CanvasID
    BaseEntity.AlgorithmStepID
    BaseEntity.SafeID
    BaseEntity.PropertyChanged
    BaseEntity.PropertyChanging
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.API.Entities.Design
    Assembly: LemonEdge.API.Entities.Auto.dll
    Syntax
    [DataContract]
    public class CustomLookupQuery : BaseEntityWithPermissions, ICustomLookupQuery, IBaseEntityWithPermissions, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ISetCopier, ICloneableAsync<ICustomLookupQuery>

    Constructors

    CustomLookupQuery()

    Declaration
    public CustomLookupQuery()

    Properties

    ComboItemsForType

    Declaration
    [NotMapped]
    public KeyValuePair<string, string>[] ComboItemsForType { get; set; }
    Property Value
    Type Description
    KeyValuePair<string, string>[]

    CurrentIDFormula

    The id of the current item is automatically passed to the query if it has a @currentItem parameter. This formula allows you to take that current item and return a different id instead.

    Declaration
    public string CurrentIDFormula { get; set; }
    Property Value
    Type Description
    string

    CurrentIDFormula2

    This formula allows you to take that current item and return a different id from @currentItem parameter.

    Declaration
    public string CurrentIDFormula2 { get; set; }
    Property Value
    Type Description
    string

    EntityTypeID

    [Key] Indicates what entity you want to provide a custom lookup query for.

    Declaration
    [RequiredNoDefaultIDValidation]
    public Guid EntityTypeID { get; set; }
    Property Value
    Type Description
    Guid

    ForLookupTypeID

    Indicates which type/property this lookup should be altered for

    Declaration
    public Guid? ForLookupTypeID { get; set; }
    Property Value
    Type Description
    Guid?

    ForLookupTypeProperty

    Indicates which type/property this lookup should be altered for

    Declaration
    [StringLength(500)]
    public string ForLookupTypeProperty { get; set; }
    Property Value
    Type Description
    string

    Name

    Declaration
    [StringLength(500)]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    ParentIDFormula

    The id of the parent item is automatically passed to the query if it has a @parentItem parameter. This formula allows you to take that parent item and return a different id instead.

    Declaration
    public string ParentIDFormula { get; set; }
    Property Value
    Type Description
    string

    SQLWrapperID

    Links to ISQLWrapper. The public sql wrapper that display all properties fo the specified entity type and will be used to override the default entity type picker view with this query

    Declaration
    public Guid SQLWrapperID { get; set; }
    Property Value
    Type Description
    Guid

    SQLWrapperID_Label

    Declaration
    public string SQLWrapperID_Label { get; set; }
    Property Value
    Type Description
    string

    SQLWrapperID_Label_Silent

    Declaration
    [NotMapped]
    public string SQLWrapperID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    UseOnlyForParameters

    Indicates this doesn't override view controls by default but instead is used in parameter popups such as queries.

    Declaration
    public bool UseOnlyForParameters { get; set; }
    Property Value
    Type Description
    bool

    Methods

    CopyFromEntity(IBaseEntity)

    Declaration
    protected override void CopyFromEntity(IBaseEntity src)
    Parameters
    Type Name Description
    IBaseEntity src
    Overrides
    BaseEntity.CopyFromEntity(IBaseEntity)

    CopyFromSource(ICustomLookupQuery)

    Updates all properties in this item to have the same properties as the source object.

    Declaration
    public void CopyFromSource(ICustomLookupQuery source)
    Parameters
    Type Name Description
    ICustomLookupQuery source

    The source object to copy all values from.

    SetComboItemsForType(Func<CustomLookupQuery, KeyValuePair<string, string>[]>)

    Declaration
    public void SetComboItemsForType(Func<CustomLookupQuery, KeyValuePair<string, string>[]> comboItems)
    Parameters
    Type Name Description
    Func<CustomLookupQuery, KeyValuePair<string, string>[]> comboItems

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    ICustomLookupQuery
    IBaseEntityWithPermissions
    IBaseEntity
    IEquatable<T>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ISetCopier
    ICloneableAsync<T>

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.