Artemis logo
Search Results for

    Show / Hide Table of Contents

    Class DataModelExpansion<T>

    Allows you to expand the application-wide datamodel

    Inheritance
    System.Object
    CorePropertyChanged
    PluginFeature
    DataModelPluginFeature
    BaseDataModelExpansion
    DataModelExpansion<T>
    Implements
    System.IDisposable
    Inherited Members
    BaseDataModelExpansion.HiddenPropertiesList
    BaseDataModelExpansion.HiddenProperties
    BaseDataModelExpansion.Update(Double)
    BaseDataModelExpansion.GetDataModelDescription()
    DataModelPluginFeature.AddTimedUpdate(TimeSpan, Action<Double>)
    DataModelPluginFeature.AddTimedUpdate(TimeSpan, Func<Double, Task>)
    PluginFeature.Info
    PluginFeature.Plugin
    PluginFeature.IsEnabled
    PluginFeature.LoadException
    PluginFeature.Id
    PluginFeature.Enable()
    PluginFeature.Disable()
    PluginFeature.Dispose(Boolean)
    PluginFeature.Dispose()
    PluginFeature.Enabled
    PluginFeature.Disabled
    PluginFeature.OnEnabled()
    PluginFeature.OnDisabled()
    CorePropertyChanged.PropertyChanged
    CorePropertyChanged.RequiresUpdate<T>(T, T)
    CorePropertyChanged.SetAndNotify<T>(T, T, String)
    CorePropertyChanged.OnPropertyChanged(String)
    Namespace: Artemis.Core.DataModelExpansions
    Assembly: Artemis.Core.dll
    Syntax
    public abstract class DataModelExpansion<T> : BaseDataModelExpansion, INotifyPropertyChanged, IDisposable where T : DataModel
    Type Parameters
    Name Description
    T

    Properties

    | Improve this Doc View Source

    DataModel

    The main data model of this data model expansion

    Note: This default data model is automatically registered upon plugin enable

    Declaration
    public T DataModel { get; }
    Property Value
    Type Description
    T

    Methods

    | Improve this Doc View Source

    HideProperty<TProperty>(Expression<Func<T, TProperty>>)

    Hide the provided property using a lambda expression, e.g. HideProperty(dm => dm.TimeDataModel.CurrentTimeUTC)

    Declaration
    public void HideProperty<TProperty>(Expression<Func<T, TProperty>> propertyLambda)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<T, TProperty>> propertyLambda

    A lambda expression pointing to the property to ignore

    Type Parameters
    Name Description
    TProperty
    | Improve this Doc View Source

    ShowProperty<TProperty>(Expression<Func<T, TProperty>>)

    Stop hiding the provided property using a lambda expression, e.g. ShowProperty(dm => dm.TimeDataModel.CurrentTimeUTC)

    Declaration
    public void ShowProperty<TProperty>(Expression<Func<T, TProperty>> propertyLambda)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<T, TProperty>> propertyLambda

    A lambda expression pointing to the property to stop ignoring

    Type Parameters
    Name Description
    TProperty

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX