Search Results for

    Show / Hide Table of Contents

    Class ControlDisplayInfoFormulaResult

    The class passed to controls that display a ControlDisplayInfo set to hold the result of a formula value

    Inheritance
    object
    ControlDisplayInfoFormulaResult
    Implements
    INotifyPropertyChanged
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.UI.API.Controls
    Assembly: LemonEdge.Client.UI.API.dll
    Syntax
    public class ControlDisplayInfoFormulaResult : INotifyPropertyChanged

    Constructors

    ControlDisplayInfoFormulaResult(IModelLayoutDisplayer, string, EntityDescriptor, string, IFormulaFunctionsWithContext, IFormulaExecuter)

    Declaration
    public ControlDisplayInfoFormulaResult(IModelLayoutDisplayer displayer, string bindingPropertyName, EntityDescriptor propertyEntityType, string formula, IFormulaFunctionsWithContext sourceForQueryCache, IFormulaExecuter formulaExecuter)
    Parameters
    Type Name Description
    IModelLayoutDisplayer displayer
    string bindingPropertyName
    EntityDescriptor propertyEntityType
    string formula
    IFormulaFunctionsWithContext sourceForQueryCache
    IFormulaExecuter formulaExecuter

    ControlDisplayInfoFormulaResult(IModelLayoutDisplayer, Type, EntityDescriptor, string, IFormulaFunctionsWithContext, IFormulaExecuter)

    Creates a new ControlDisplayInfoFormulaResult for the specified formula that returns a value of the specified propertyType

    Declaration
    public ControlDisplayInfoFormulaResult(IModelLayoutDisplayer displayer, Type propertyType, EntityDescriptor propertyEntityType, string formula, IFormulaFunctionsWithContext sourceForQueryCache, IFormulaExecuter formulaExecuter)
    Parameters
    Type Name Description
    IModelLayoutDisplayer displayer
    Type propertyType

    The type of result returned from the specified formula

    EntityDescriptor propertyEntityType
    string formula

    The formula to evaluate and return a result for

    IFormulaFunctionsWithContext sourceForQueryCache
    IFormulaExecuter formulaExecuter

    Fields

    _boolValue

    Declaration
    public bool? _boolValue
    Field Value
    Type Description
    bool?

    _byteValue

    Declaration
    public byte[] _byteValue
    Field Value
    Type Description
    byte[]

    _charValue

    Declaration
    public char? _charValue
    Field Value
    Type Description
    char?

    _dateValue

    Declaration
    public DateTimeOffset? _dateValue
    Field Value
    Type Description
    DateTimeOffset?

    _decimalValue

    Declaration
    public decimal? _decimalValue
    Field Value
    Type Description
    decimal?

    _doubleValue

    Declaration
    public double? _doubleValue
    Field Value
    Type Description
    double?

    _guidValue

    Declaration
    public Guid? _guidValue
    Field Value
    Type Description
    Guid?

    _guidValue_Label

    Declaration
    public string _guidValue_Label
    Field Value
    Type Description
    string

    _intValue

    Declaration
    public int? _intValue
    Field Value
    Type Description
    int?

    _longValue

    Declaration
    public long? _longValue
    Field Value
    Type Description
    long?

    _objValue

    Declaration
    public object _objValue
    Field Value
    Type Description
    object

    _shortValue

    Declaration
    public short? _shortValue
    Field Value
    Type Description
    short?

    Properties

    BoolValue

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

    ByteValue

    Declaration
    public byte[] ByteValue { get; set; }
    Property Value
    Type Description
    byte[]

    CharValue

    Declaration
    public char? CharValue { get; set; }
    Property Value
    Type Description
    char?

    Context

    Declaration
    public IFormulaFunctionsWithContext Context { get; }
    Property Value
    Type Description
    IFormulaFunctionsWithContext

    ContextItem

    Declaration
    public IBaseEntity ContextItem { get; }
    Property Value
    Type Description
    IBaseEntity

    DateValue

    Declaration
    public DateTimeOffset? DateValue { get; set; }
    Property Value
    Type Description
    DateTimeOffset?

    DecimalValue

    Declaration
    public decimal? DecimalValue { get; set; }
    Property Value
    Type Description
    decimal?

    DoubleValue

    Declaration
    public double? DoubleValue { get; set; }
    Property Value
    Type Description
    double?

    Formula

    The formula this class evaluates and sets the property with the result for

    Declaration
    public string Formula { get; }
    Property Value
    Type Description
    string

    GuidValue

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

    GuidValue_Label

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

    IntValue

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

    LongValue

    Declaration
    public long? LongValue { get; set; }
    Property Value
    Type Description
    long?

    ObjectValue

    Declaration
    public object ObjectValue { get; set; }
    Property Value
    Type Description
    object

    ShortValue

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

    StringValue

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

    Methods

    EvaluateFormula(IEntityUpdater, IReadOnlyCache, UserInfo, IBaseEntity, bool)

    Evaluates this controls formula and sets the value for the property with the correct result

    Declaration
    public Task EvaluateFormula(IEntityUpdater updater, IReadOnlyCache cache, UserInfo user, IBaseEntity contextItem, bool trackChanges)
    Parameters
    Type Name Description
    IEntityUpdater updater

    A context updater

    IReadOnlyCache cache

    A cache

    UserInfo user

    The current user

    IBaseEntity contextItem

    The item this formula is to be evaluated against

    bool trackChanges

    Whether to track changes on the contextItem

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    GetResultBinding(Type)

    Returns the property on this class that will hold the result of the formula given the specified result type from the formula

    Declaration
    public static string GetResultBinding(Type formulaResultPropertyType)
    Parameters
    Type Name Description
    Type formulaResultPropertyType

    The type of value that is returned from evaluating the formula

    Returns
    Type Description
    string

    The name of the property on this class that will hold the result of the formula given the specified result type from the formula

    Events

    PropertyChanged

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    PropertyChangedEventHandler

    Implements

    INotifyPropertyChanged

    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.