Class MultiReferenceObject
Represents property value for multi reference type.
Inheritance
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data.Meta
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public class MultiReferenceObject
Constructors
MultiReferenceObject(MetaClass, PrimaryKeyId)
Initializes a new instance of the MultiReferenceObject class.
Declaration
public MultiReferenceObject(MetaClass activeReference, PrimaryKeyId objectId)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | activeReference | The active reference. |
PrimaryKeyId | objectId | The object id. |
MultiReferenceObject(MetaObjectProperty)
Initializes a new instance of the MultiReferenceObject class.
Declaration
public MultiReferenceObject(MetaObjectProperty ownerProperty)
Parameters
Type | Name | Description |
---|---|---|
MetaObjectProperty | ownerProperty |
MultiReferenceObject(String, PrimaryKeyId)
Initializes a new instance of the MultiReferenceObject class.
Declaration
public MultiReferenceObject(string activeReferenceName, PrimaryKeyId objectId)
Parameters
Type | Name | Description |
---|---|---|
System.String | activeReferenceName | Name of the active reference. |
PrimaryKeyId | objectId | The object id. |
Properties
ActiveReference
Gets or sets the active reference.
Declaration
public MetaClass ActiveReference { get; protected set; }
Property Value
Type | Description |
---|---|
MetaClass | The active reference. |
HasValue
Gets a value indicating whether this instance has value.
Declaration
public bool HasValue { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ObjectId
Gets or sets the object id.
Declaration
public PrimaryKeyId? ObjectId { get; protected set; }
Property Value
Type | Description |
---|---|
System.Nullable<PrimaryKeyId> | The object id. |
ObjectTitle
Gets or sets the object title.
Declaration
public string ObjectTitle { get; protected set; }
Property Value
Type | Description |
---|---|
System.String | The object title. |
OwnerProperty
Declaration
public MetaObjectProperty OwnerProperty { get; set; }
Property Value
Type | Description |
---|---|
MetaObjectProperty |
Methods
GetAvailableReferences()
Gets the available reference types.
Declaration
public MetaClass[] GetAvailableReferences()
Returns
Type | Description |
---|---|
MetaClass[] |
Init()
Inits this instance.
Declaration
protected virtual void Init()
Reset()
Resets this instance.
Declaration
public virtual void Reset()
Reset(MetaObjectProperty)
Resets the specified owner property.
Declaration
public static void Reset(MetaObjectProperty ownerProperty)
Parameters
Type | Name | Description |
---|---|---|
MetaObjectProperty | ownerProperty | The owner property. |
SetValue(MetaClass, PrimaryKeyId)
Sets the value.
Declaration
public virtual void SetValue(MetaClass metaClass, PrimaryKeyId objectId)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
PrimaryKeyId | objectId | The object id. |
SetValue(String, PrimaryKeyId)
Sets the value.
Declaration
public void SetValue(string metaClassName, PrimaryKeyId objectId)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
PrimaryKeyId | objectId | The object id. |
Sync()
Syncs this instance.
Declaration
public void Sync()