Class PropertyType
The internal property description of one model entity type
with data about their value mapping and individual configurations e.g. for the output.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Interfaces.Model
Assembly: Mars.Interfaces.dll
Syntax
public class PropertyType : IdentifiableElement
Constructors
| Improve this Doc View SourcePropertyType(PropertyInfo)
Creates an instance of the property type
Declaration
public PropertyType(PropertyInfo info)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.PropertyInfo | info | The internal property description with name constraints etc. |
Properties
| Improve this Doc View SourceDescription
Gets the description of this property passed by the model itself or null if nothing was specified.
Declaration
public PropertyDescription Description { get; }
Property Value
| Type | Description |
|---|---|
| PropertyDescription |
Ignore
Gets or sets the value indicating that this property shall be ignored.
Declaration
public bool Ignore { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsDecimalNumberType
Gets the flag indicating whether this property is of fix- or
nullable-type 'decimal, double, short or float'.
Declaration
public bool IsDecimalNumberType { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsGeometry
The internal property description of one model entity type
with data about their value mapping and individual configurations e.g. for the output.
Declaration
public bool IsGeometry { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsMappingProperty
Gets a flag indicating whether this property can be used for input/output mapping.
Declaration
public bool IsMappingProperty { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsNullablePrimitive
Gets a flag indicating whether this property can be assigned with null or doesnt need a value.
Declaration
public bool IsNullablePrimitive { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsOutputProperty
Gets a flag indicating whether this property can be used as an output.
Declaration
public bool IsOutputProperty { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsPosition
The internal property description of one model entity type
with data about their value mapping and individual configurations e.g. for the output.
Declaration
public bool IsPosition { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsStatic
Gets the flag indicating whether this property is defined as static.
Declaration
public bool IsStatic { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Name
The name of this property e.g.
Velocity of a car
Declaration
public override string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
| Improve this Doc View SourcePropertyInfo
The actual type of this property internal described
by the .net System.Type description.
Declaration
public PropertyInfo PropertyInfo { get; }
Property Value
| Type | Description |
|---|---|
| System.Reflection.PropertyInfo |
PropertyMapping
The respective mapping of this property if something exist
or null if no individual property mapping was set
Declaration
public IndividualMapping PropertyMapping { get; set; }
Property Value
| Type | Description |
|---|---|
| IndividualMapping |
Required
Gets or sets the value indicating that this property shall be ignored.
Declaration
public bool Required { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
TypeReference
Gets the PropertyInfo description with reference to the
setter, getter and more reflection calls.
Declaration
public Type TypeReference { get; }
Property Value
| Type | Description |
|---|---|
| System.Type |
Methods
| Improve this Doc View SourceTryGetNumberType(out String)
The internal property description of one model entity type
with data about their value mapping and individual configurations e.g. for the output.
Declaration
public bool TryGetNumberType(out string identifier)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | identifier |
Returns
| Type | Description |
|---|---|
| System.Boolean |