Class DataModelExpansion<T>
Allows you to expand the application-wide datamodel
Inheritance
System.Object
DataModelExpansion<T>
Implements
System.IDisposable
Inherited Members
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 SourceDataModel
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 SourceHideProperty<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 |
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