Table of Contents

Class GuidProperty

Namespace
TimeCockpit.Data.DataModel
Assembly
TimeCockpit.Data.dll

Represents a property of type Guid in the Time Cockpit data model.

[DataType(typeof(Guid))]
[Column(typeof(Guid))]
[DefaultValue("00000000-0000-0000-0000-000000000000")]
[FriendlyTypeName("Guid")]
public class GuidProperty : PersistedProperty, IDynamicMetaObjectProvider, INotifyPropertyChanged, IDataErrorInfo, INullable
Inheritance
Object
GuidProperty
Implements
IDynamicMetaObjectProvider
INotifyPropertyChanged
IDataErrorInfo
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

GuidProperty()

Initializes a new instance of the GuidProperty class.

public GuidProperty()

GuidProperty(IEnumerable<KeyValuePair<Object, Object>>)

Initializes a new instance of the GuidProperty class.

public GuidProperty(IEnumerable<KeyValuePair<object, object>> properties)

Parameters

properties IEnumerable<KeyValuePair<Object, Object>>

Collection of properties.

GuidProperty(GuidProperty)

Initializes a new instance of the GuidProperty class.

public GuidProperty(GuidProperty element)

Parameters

element GuidProperty

The element.

Properties

ClrDefaultValue

Gets the default valud for the datatype for the property.

public override object ClrDefaultValue { get; }

Property Value

Object

DataType

Gets the datatype for the property.

public override Type DataType { get; }

Property Value

Type

Methods

Convert(Object)

Converts an object to the type of the property.

public override object Convert(object value)

Parameters

value Object

Object to convert.

Returns

Object

Returns the converted object.

ValidateValue(Object, out String)

Validates that the value is of type System.Guid or null, if the property is null-able.

public override bool ValidateValue(object value, out string errorMessage)

Parameters

value Object

The value to validate.

errorMessage String

The resulting error message, or null if there is none.

Returns

Boolean

Returns true if the value is valid, false otherwise.