November Happy Hour will be moved to Thursday December 5th.

Class MetaObjectAccessor

Facade for accessing meta object data.

Inheritance
System.Object
MetaObjectAccessor
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.Commerce.Storage
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
public class MetaObjectAccessor

Constructors

MetaObjectAccessor(MetaObject, String)

Initializes a new instance of the MetaObjectAccessor class. for reading values from a specific meta object.

Declaration
public MetaObjectAccessor(MetaObject metaObject, string language)
Parameters
Type Name Description
MetaObject metaObject

The meta object.

System.String language

The language of the meta object.

MetaObjectAccessor(Int32, Int32)

Initializes a new instance of the MetaObjectAccessor class for reading values from meta objects.

Declaration
public MetaObjectAccessor(int objectId, int metaClassId)
Parameters
Type Name Description
System.Int32 objectId

The object id (entry/node). Used if serialized data is empty or can't be deserialized.

System.Int32 metaClassId

The meta class id. Used if serialized data is empty or can't be deserialized.

Methods

GetCreated(MetaDataContext)

Gets the created date.

Declaration
public DateTime GetCreated(MetaDataContext context)
Parameters
Type Name Description
MetaDataContext context

The context.

Returns
Type Description
System.DateTime

GetCreated(String)

Gets the created date.

Declaration
public DateTime GetCreated(string language)
Parameters
Type Name Description
System.String language

The language.

Returns
Type Description
System.DateTime

GetCreatorId(MetaDataContext)

Gets the creator id.

Declaration
public string GetCreatorId(MetaDataContext context)
Parameters
Type Name Description
MetaDataContext context

The context.

Returns
Type Description
System.String

GetCreatorId(String)

Gets the creator id.

Declaration
public string GetCreatorId(string language)
Parameters
Type Name Description
System.String language

The language.

Returns
Type Description
System.String

GetFieldValues(MetaDataContext)

Gets the field values.

Declaration
public Hashtable GetFieldValues(MetaDataContext context)
Parameters
Type Name Description
MetaDataContext context

The context.

Returns
Type Description
System.Collections.Hashtable

GetFieldValues(String)

Gets the field values.

Declaration
public Hashtable GetFieldValues(string language)
Parameters
Type Name Description
System.String language

The language.

Returns
Type Description
System.Collections.Hashtable

GetMetaClass()

Gets the meta class using the current meta data context.

Declaration
public MetaClass GetMetaClass()
Returns
Type Description
MetaClass

GetMetaClass(MetaDataContext)

Gets the meta class.

Declaration
public MetaClass GetMetaClass(MetaDataContext context)
Parameters
Type Name Description
MetaDataContext context

The context.

Returns
Type Description
MetaClass

GetModified(MetaDataContext)

Gets the modified date.

Declaration
public DateTime GetModified(MetaDataContext context)
Parameters
Type Name Description
MetaDataContext context

The context.

Returns
Type Description
System.DateTime

GetModified(String)

Gets the modified date.

Declaration
public DateTime GetModified(string language)
Parameters
Type Name Description
System.String language

The language.

Returns
Type Description
System.DateTime

GetModifierId(MetaDataContext)

Gets the modifier id.

Declaration
public string GetModifierId(MetaDataContext context)
Parameters
Type Name Description
MetaDataContext context

The context.

Returns
Type Description
System.String

GetModifierId(String)

Gets the modifier id.

Declaration
public string GetModifierId(string language)
Parameters
Type Name Description
System.String language

The language.

Returns
Type Description
System.String