Class PersistedProperty
Represents a persisted property in the Time Cockpit data model.
Inheritance
System.Object
PersistedProperty
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.IDataErrorInfo
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.DataModel
Assembly: TimeCockpit.Data.dll
Syntax
public abstract class PersistedProperty : ModelProperty, IDynamicMetaObjectProvider, INotifyPropertyChanged, IDataErrorInfo, INullable
Remarks
Persisted properties are properties that are stored in the Time Cockpit database. The opposite of persisted properties are properties, that are calculated on-the-fly without storing the result inside the database.
Constructors
PersistedProperty()
Initializes a new instance of the PersistedProperty class.
Declaration
protected PersistedProperty()
PersistedProperty(IEnumerable<KeyValuePair<Object, Object>>)
Initializes a new instance of the PersistedProperty class.
Declaration
protected PersistedProperty(IEnumerable<KeyValuePair<object, object>> properties)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Object, System.Object>> | properties | Collection of properties. |
PersistedProperty(PersistedProperty)
Initializes a new instance of the PersistedProperty class.
Declaration
protected PersistedProperty(PersistedProperty element)
Parameters
Type | Name | Description |
---|---|---|
PersistedProperty | element | The element to copy. |
Properties
StorageColumn
Gets the storage column associated with this property
Declaration
public StorageColumn StorageColumn { get; }
Property Value
Type | Description |
---|---|
StorageColumn | Storage columns. |
ValidationScript
Gets or sets a script to validate a property.
Declaration
[Obsolete]
public string ValidationScript { get; set; }
Property Value
Type | Description |
---|---|
System.String |