Class MetaObjectProperty

Represents meta object property storage.

Inheritance
System.Object
MetaObjectProperty
Implements
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: Mediachase.BusinessFoundation.Data.Meta
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 10.8.0
Syntax
public class MetaObjectProperty : IChangeTracking

Properties

IsChanged

Gets a value indicating whether this instance is changed.

Declaration
public bool IsChanged { get; }
Property Value
Type Description
System.Boolean

true if this instance is changed; otherwise, false.

IsReadOnly

Gets a value indicating whether this instance is read only.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean

true if this instance is read only; otherwise, false.

IsReadOnlyLinked

Gets a value indicating whether this instance is read only linked.

Declaration
protected bool IsReadOnlyLinked { get; }
Property Value
Type Description
System.Boolean

true if this instance is read only linked; otherwise, false.

Name

Gets the name.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

The name.

OriginalValue

Gets the original value.

Declaration
public object OriginalValue { get; }
Property Value
Type Description
System.Object

The original value.

OwnerMetaObject

Gets the owner meta object.

Declaration
public MetaObject OwnerMetaObject { get; }
Property Value
Type Description
MetaObject

The owner meta object.

Value

Gets or sets the value.

Declaration
public object Value { get; set; }
Property Value
Type Description
System.Object

The value.

Methods

AcceptChanges()

Accepts the changes.

Declaration
public void AcceptChanges()

CheckUniqueValue(MetaField, Nullable<PrimaryKeyId>, Object)

Checks the unique value.

Declaration
public static bool CheckUniqueValue(MetaField field, PrimaryKeyId? ownerMetaObjectPrimaryKeyId, object value)
Parameters
Type Name Description
MetaField field

The field.

System.Nullable<PrimaryKeyId> ownerMetaObjectPrimaryKeyId

The owner meta object primary key id.

System.Object value

The value.

Returns
Type Description
System.Boolean

true if value is unique, otherwise false.

CheckUniqueValue(MetaField, Object)

Checks the unique value.

Declaration
public static bool CheckUniqueValue(MetaField field, object value)
Parameters
Type Name Description
MetaField field

The field.

System.Object value

The value.

Returns
Type Description
System.Boolean

CheckUniqueValue(MetaObjectProperty)

Checks the unique value.

Declaration
public static bool CheckUniqueValue(MetaObjectProperty property)
Parameters
Type Name Description
MetaObjectProperty property

The property.

Returns
Type Description
System.Boolean

true if value is unique, otherwise false.

GetInnerValue()

Gets the inner value.

Declaration
public object GetInnerValue()
Returns
Type Description
System.Object

GetMetaType()

Gets the type of the meta.

Declaration
public MetaField GetMetaType()
Returns
Type Description
MetaField

GetValue<T>()

Gets the value.

Declaration
public T GetValue<T>()
Returns
Type Description
T
Type Parameters
Name Description
T

GetValue<T>(T)

Gets the value.

Declaration
public T GetValue<T>(T defaultValue)
Parameters
Type Name Description
T defaultValue

The default value.

Returns
Type Description
T
Type Parameters
Name Description
T

SetInnerValue(Object)

Sets the initial value.

Declaration
public void SetInnerValue(object value)
Parameters
Type Name Description
System.Object value

The value.

SetInnerValue(Object, Boolean)

Sets the inner value.

Declaration
public void SetInnerValue(object value, bool rewriteOriginalValue)
Parameters
Type Name Description
System.Object value

The value.

System.Boolean rewriteOriginalValue

if set to true [rewrite original value].

SetValue<T>(T)

Sets the value.

Declaration
public void SetValue<T>(T value)
Parameters
Type Name Description
T value

The value.

Type Parameters
Name Description
T

Implements