Class MetaObjectProperty
Represents meta object property storage.
Inheritance
Implements
Namespace: Mediachase.BusinessFoundation.Data.Meta
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 14.26.0Syntax
public class MetaObjectProperty : Object, IChangeTrackingProperties
IsChanged
Gets a value indicating whether this instance is changed.
Declaration
public bool IsChanged { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
IsReadOnly
Gets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
IsReadOnlyLinked
Gets a value indicating whether this instance is read only linked.
Declaration
protected bool IsReadOnlyLinked { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
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, Nullable<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  | 
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 | 
