Class DataModelPropertyAttribute
Represents an attribute that describes a data model property
Inherited Members
Namespace: Artemis.Core.Modules
Assembly: Artemis.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public class DataModelPropertyAttribute : Attribute
Constructors
DataModelPropertyAttribute()
Declaration
public DataModelPropertyAttribute()
Properties
Affix
Gets or sets an optional affix to show behind displaying elements in the UI.
Declaration
public string? Affix { get; set; }
Property Value
Type | Description |
---|---|
string |
Description
Gets or sets the user-friendly description for this property, shown in the UI.
Declaration
public string? Description { get; set; }
Property Value
Type | Description |
---|---|
string |
ListItemName
Gets or sets the name of list items, only applicable to enumerable data model properties
Declaration
public string? ListItemName { get; set; }
Property Value
Type | Description |
---|---|
string |
MaxValue
Gets or sets an optional maximum value, this value is not enforced but used for percentage calculations.
Declaration
public object? MaxValue { get; set; }
Property Value
Type | Description |
---|---|
object |
MinValue
Gets or sets an optional minimum value, this value is not enforced but used for percentage calculations.
Declaration
public object? MinValue { get; set; }
Property Value
Type | Description |
---|---|
object |
Name
Gets or sets the user-friendly name for this property, shown in the UI.
Declaration
public string? Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Prefix
Gets or sets the an optional prefix to show before displaying elements in the UI.
Declaration
public string? Prefix { get; set; }
Property Value
Type | Description |
---|---|
string |
ResetsDepth
Gets or sets whether this property resets the max depth of the data model, defaults to true
Declaration
public bool ResetsDepth { get; set; }
Property Value
Type | Description |
---|---|
bool |