Search Results for

    Show / Hide Table of Contents

    Class SQLTypeWrapper

    Inheritance
    object
    BaseEntity
    SQLTypeWrapper
    Implements
    ISQLTypeWrapper
    IBaseEntity
    IEquatable<IBaseEntity>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<ISQLTypeWrapper>
    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 SQLTypeWrapper : BaseEntity, ISQLTypeWrapper, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<ISQLTypeWrapper>

    Constructors

    SQLTypeWrapper()

    Declaration
    public SQLTypeWrapper()

    Properties

    Aggregate

    The aggregate function to use against this data, all non-aggregated columns will be grouped by aggregated ones.

    Declaration
    [EnumDataType(typeof(AggregateFunction))]
    public AggregateFunction Aggregate { get; set; }
    Property Value
    Type Description
    AggregateFunction

    Aggregate_Tooltip

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

    AllowMultiSelect

    If this parameter is an id of an entity (uniqueidentifier type with an entity type and entity property) then this indicates the user should be able to select multiple items instead of just one.

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

    ApiQueryID

    [Key] Links to IAPIQuery. The parent entity this belongs to.

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

    ApiQueryID_Label

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

    ApiQueryID_Label_Silent

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

    CanEditFromIDLink

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

    CanEditFromIDLink_Label

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

    CanEditFromIDLink_Label_Silent

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

    CodeSnippetID

    [Key] Links to ICodeSnippet. The parent snippet this belongs to.

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

    CodeSnippetID_Label

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

    CodeSnippetID_Label_Silent

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

    Color

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

    ColumnUserFriendlyLabel

    The user friendly heading of this column.

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

    DataSetID

    [Key] Links to IDataset. The Data set item this belongs to.

    Declaration
    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

    DataSetQueryableItemID

    [Key] Links to IDataSetQueryableItem. The Data set queryable item this belongs to.

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

    DataSetQueryableItemID_Label

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

    DataSetQueryableItemID_Label_Silent

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

    DataSetShortcutID

    [Key] Links to IDatasetShortcut. The Data set shortcut this belongs to.

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

    DataSetShortcutID_Label

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

    DataSetShortcutID_Label_Silent

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

    Description

    A user friendly description of this column

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

    EntityParamComboItems

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

    EntityPropertyName

    If this type wraps a system property, this indicates the property of the type of entity the type wraps.

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

    EntityTypeID

    If this type wraps a system property, this indicates the type of entity the type wraps.

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

    EnumPropertyType

    If this property is an enum type this holds the type of enum to be used for displaying in grids.

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

    ExcludeFromResultSet

    Indicates this column should be included in the result set. You can add columns that are only included in calculations, and not in the actual result set

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

    Format

    Applies any custom formatting you want to the result when displayed in a grid.

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

    FrameworkType

    The .net framework equivelant type of this sql type.

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

    GridAggregate

    The aggregate function to use when displaying these results in a grid.

    Declaration
    [EnumDataType(typeof(AggregateFunction))]
    public AggregateFunction GridAggregate { get; set; }
    Property Value
    Type Description
    AggregateFunction

    GridAggregate_Tooltip

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

    GridDefaultWidth

    The default width for the column when displayed in a grid. Left blank the system default is used, otherwise the specified amount is used.

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

    GridFreezeUpTo

    Indicates when these results are displayed in a grid the columns should be frozen up to this one.

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

    GridGroupBy

    Indicates when these results are displayed in a grid the column should automatically be grouped.

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

    GridGroupHeader

    The group header to use when displaying these results in a grid.

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

    GridIsDefaultSearch

    Indicates when these results are displayed in a grid this column is the one that is automatically used when searching.

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

    GridPartOfRowHeader

    Indicates when these results are displayed in a grid this column forms part of the row header when scrolling through large sets of results.

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

    GridSubGroupHeader

    The sub group header to use when displaying these results in a grid.

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

    HasCustomAggregate

    Indicates this column has a custom aggregate function using a ISQLFunction

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

    Index

    The order this column will appear in the result set. This can be moved up and down using the standard grid commands.

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

    IsNullable

    Indicates if this type is nullable.

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

    IsPostProcess

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

    MaxLength

    The max length to use if this column is a text type such as nvarchar. If blank it is the equivalent to nvarchar(max).

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

    Name

    [Key] The name of this column. This is the name used as column headers in csv exports.

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

    ParamCustomLookupQueryID

    [Key] Links to ICustomLookupQuery. The custom lookup query to use for selecting this parameter

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

    ParamCustomLookupQueryID_Label

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

    ParamCustomLookupQueryID_Label_Silent

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

    ParameterDefaultValue

    If this type is a parameter, this indicates a constant default value to provide as the value.

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

    ParameterFormulaValue

    If this type is a parameter, this indicates a formula to evaluate and use as the default value.

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

    ParameterName

    If this type is a parameter, this holds the name of the variable, must include @.

    Declaration
    [FileSafeNameValidation(AllowParamAtSign = true, AllowNulls = true)]
    [StringLength(500)]
    public string ParameterName { get; set; }
    Property Value
    Type Description
    string

    ParameterRequired

    If this type is a parameter, this indicates if the parameter must have a value.

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

    ParentIndex

    The parent index is used for columns that display labels for unique identifiers. If you have a column that holds a unique identifier key, you can set the label of that column to have a parent index of the uniqueidentifier column.

    The system will then know how to display the label in the grid for the user rather than a list of uniqueidentifiers the user won't be able to recognize.

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

    PostProcessCalculation

    Custom code to run as part of a post process when evaluating this column

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

    Precision

    If this is a decimal sql type this holds the precision amount as in decimal(18,2)

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

    QueryRunnerID

    [Key] Links to IQueryRunner. The parent query runner this belongs to.

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

    QueryRunnerID_Label

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

    QueryRunnerID_Label_Silent

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

    ReportID

    [Key] Links to IReport. The parent report this belongs to.

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

    ReportID_Label

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

    ReportID_Label_Silent

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

    SQLType

    Indicates the actual underlying sql type this column holds

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

    SQLType_Tooltip

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

    SQLWrapperID

    [Key] Links to ISQLWrapper. The parent sql wrapper this belongs to.

    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

    Scale

    If this is a decimal sql type this holds the scale amount as in decimal(18,2)

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

    SortOrder

    Can only be used in queries with a Top/Skip setting. Results are otherwise always unordered and are only ordered by the callee.

    Declaration
    [EnumDataType(typeof(Order))]
    public Order SortOrder { get; set; }
    Property Value
    Type Description
    Order

    SortOrder_Tooltip

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

    Type

    Indicates what type of data this is to wrap. i.e. parameter or return column type.

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

    Type_Tooltip

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

    VennSetID

    [Key] Links to IVennset. The Venn set item this belongs to.

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

    VennSetID_Label

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

    VennSetID_Label_Silent

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

    VennSetQueryableItemID

    [Key] Links to IVennSetQueryableItem. The Venn set queryable item this belongs to.

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

    VennSetQueryableItemID_Label

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

    VennSetQueryableItemID_Label_Silent

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

    Visible

    Indicates if this column is visible by default when the results are displayed in a grid. The user can always make the column visible if it is hidden, and will always see the column in result exports too.

    Declaration
    public bool Visible { 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(ISQLTypeWrapper)

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

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

    The source object to copy all values from.

    GetFrameworkTypeType()

    Declaration
    public Type GetFrameworkTypeType()
    Returns
    Type Description
    Type

    SetEntityParamComboItems(Func<SQLTypeWrapper, KeyValuePair<string, string>[]>)

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

    SetFrameworkTypeType(Type)

    Declaration
    public void SetFrameworkTypeType(Type type)
    Parameters
    Type Name Description
    Type type

    ToString()

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

    UpdateFrameworkType()

    Declaration
    public void UpdateFrameworkType()

    Implements

    ISQLTypeWrapper
    IBaseEntity
    IEquatable<T>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    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.