Search Results for

    Show / Hide Table of Contents

    Class DatasetQueryableItem

    Inheritance
    object
    BaseEntity
    DatasetQueryableItem
    Implements
    IDatasetQueryableItem
    IBaseEntity
    IEquatable<IBaseEntity>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<IDatasetQueryableItem>
    ISetCopierCustomChildren
    ISetCopierCloneAlterer
    Inherited Members
    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.Reporting
    Assembly: LemonEdge.API.Entities.Auto.dll
    Syntax
    [DataContract]
    public class DatasetQueryableItem : BaseEntity, IDatasetQueryableItem, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<IDatasetQueryableItem>, ISetCopierCustomChildren, ISetCopierCloneAlterer

    Constructors

    DatasetQueryableItem()

    Declaration
    public DatasetQueryableItem()

    Properties

    Color

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

    CopierCloneType

    Declaration
    public SetCopierCloneType CopierCloneType { get; set; }
    Property Value
    Type Description
    SetCopierCloneType

    DatasetID

    Links to IDataset. The parent dataset this queryable item belongs to

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

    DatasetID_Label

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

    DatasetID_Label_Silent

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

    Distinct

    Indicates all rows returned must be distinct removing any duplicate values

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

    IsWith

    Not used yet: Indicates this queryable item should generate a with statement that can be used by the next queryable item set

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

    JoinType

    If this Queryable Item is a child of any other Queryable Item, then this specifies the type of join this queryable item will have to the overall dataset:

    • Exclusive: Equivalent to Inner Join in SQL.
    • Inclusive: Equivalent to Outer Join in SQL
    • CrossJoin: Equivalent to Cross Join in SQL
    Declaration
    [EnumDataType(typeof(DatasetRelationshipJoinType))]
    public DatasetRelationshipJoinType? JoinType { get; set; }
    Property Value
    Type Description
    DatasetRelationshipJoinType?

    JoinType_Tooltip

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

    Name

    [Key] This is the user friendly name of the queryable item as it will appear in the treeview.

    This makes looking at the data structure very easy at a glance.It is also the name the user will see if they are able to open a row of data from this item type

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

    ParentID

    The Queryable Item this entity is a child of (if it is not the root queryable item)

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

    ParentID_Label

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

    ParentID_Label_Silent

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

    QueryableItemID

    The item of the specified type that you want to query

    A queryable item inherits IQueryableItem

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

    QueryableItemSubID

    The sub id of this queryable item.

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

    QueryableItemTypeName

    The type of item you want to query. This can be an Entity, History, or Query.

    Declaration
    [Required]
    [StringLength(50)]
    public string QueryableItemTypeName { get; set; }
    Property Value
    Type Description
    string

    ReplicateForAll

    If the queryable item type is a type that has sub Queryable Item Options, such as permissions, then this indicates you want to replicate your query for every option and union the results together.

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

    Sequence

    Holds the order of this queryable item in the set.

    Declaration
    public short Sequence { get; set; }
    Property Value
    Type Description
    short

    SetType

    Specifies the operator to apply when combining the data from this set with the data from the prior set

    Declaration
    [EnumDataType(typeof(SetOperator))]
    public SetOperator? SetType { get; set; }
    Property Value
    Type Description
    SetOperator?

    SetType_Tooltip

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

    Skip

    Indicates the queryable item should skip the specified number of rows (requires an order in the Columns) before returning the remaining amount

    Declaration
    public int? Skip { get; set; }
    Property Value
    Type Description
    int?

    Top

    Indicates the queryable item should always only return the following number of rows

    Declaration
    public int? Top { get; set; }
    Property Value
    Type Description
    int?

    Methods

    AlterCopiedItem(IEntityUpdater, UserInfo, IReadOnlyCache, IBaseEntity)

    A custom ability to alter this item when it is was copied by the user in the UI, not when it is being imported

    Declaration
    public Task AlterCopiedItem(IEntityUpdater host, UserInfo user, IReadOnlyCache cache, IBaseEntity sourceItem)
    Parameters
    Type Name Description
    IEntityUpdater host

    The context this item was copied into

    UserInfo user

    The current user

    IReadOnlyCache cache

    The current local cache

    IBaseEntity sourceItem

    The original source item this item was copied from

    Returns
    Type Description
    Task

    A task inidicating the finishing of this method

    CopyFromEntity(IBaseEntity)

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

    CopyFromSource(IDatasetQueryableItem)

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

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

    The source object to copy all values from.

    GetCustomChildItem(IEntityRetriever, string)

    Declaration
    public Task<IBaseEntity> GetCustomChildItem(IEntityRetriever context, string propertyName)
    Parameters
    Type Name Description
    IEntityRetriever context
    string propertyName
    Returns
    Type Description
    Task<IBaseEntity>

    GetCustomChildPropertyNames()

    Declaration
    public IEnumerable<string> GetCustomChildPropertyNames()
    Returns
    Type Description
    IEnumerable<string>

    HasCustomChild(string)

    Declaration
    public bool HasCustomChild(string propertyName)
    Parameters
    Type Name Description
    string propertyName
    Returns
    Type Description
    bool

    ToString()

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

    Implements

    IDatasetQueryableItem
    IBaseEntity
    IEquatable<T>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<T>
    ISetCopierCustomChildren
    ISetCopierCloneAlterer

    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.