Class MetaStorageBase
Base class for objects that contain meta fields.
Implements
Inherited Members
Namespace: Mediachase.Commerce.Storage
Assembly: Mediachase.Commerce.dll
Version: 13.30.0Syntax
public abstract class MetaStorageBase : MetaObject, IXmlSerializable, IStorageObject, ICloneable, ISerializable
Constructors
MetaStorageBase(SerializationInfo, StreamingContext)
Initializes a new instance of the MetaStorageBase class.
Declaration
protected MetaStorageBase(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
Properties
Item[String]
Gets or sets the System.Object with the specified field name.
Declaration
public override object this[string fieldName] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName |
Property Value
Type | Description |
---|---|
System.Object |
Overrides
SystemFieldStorage
Gets the system field storage.
Declaration
protected Hashtable SystemFieldStorage { get; }
Property Value
Type | Description |
---|---|
System.Collections.Hashtable | The system field storage. |
Methods
AcceptChanges()
Accepts the changes.
Declaration
public abstract void AcceptChanges()
AcceptChanges(MetaDataContext)
Accepts the changes.
Declaration
public override void AcceptChanges(MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
MetaDataContext | context | The context. |
Overrides
Clone()
Clone the object, and returning a reference to a cloned object.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | Reference to the new cloned object. |
CreateDeleteCommand(MetaDataContext)
Creates the delete command.
Declaration
protected virtual DataCommand CreateDeleteCommand(MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
MetaDataContext | context | The context. |
Returns
Type | Description |
---|---|
DataCommand |
CreateInsertCommand(MetaDataContext)
Creates the insert command.
Declaration
protected virtual DataCommand CreateInsertCommand(MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
MetaDataContext | context | The context. |
Returns
Type | Description |
---|---|
DataCommand |
CreateParameters(DataCommand)
Creates the parameters.
Declaration
protected virtual void CreateParameters(DataCommand command)
Parameters
Type | Name | Description |
---|---|---|
DataCommand | command | The command. |
CreateUpdateCommand(MetaDataContext)
Creates the update command.
Declaration
protected virtual DataCommand CreateUpdateCommand(MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
MetaDataContext | context | The context. |
Returns
Type | Description |
---|---|
DataCommand |
DeepCloneImplementation()
Declaration
protected override object DeepCloneImplementation()
Returns
Type | Description |
---|---|
System.Object |
Overrides
Delete()
Deletes this instance.
Declaration
public override void Delete()
Overrides
GetObjectData(SerializationInfo, StreamingContext)
Gets the object data.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
Overrides
PopulateCollections(DataTableCollection, String)
Populates collections within table. The tables used will be removed from the table collection. Override this method to populate your custom collection objects.
Declaration
protected virtual void PopulateCollections(DataTableCollection tables, string filter)
Parameters
Type | Name | Description |
---|---|---|
System.Data.DataTableCollection | tables | The tables. |
System.String | filter | The filter. |
ReadXml(XmlReader)
Generates an object from its XML representation.
Declaration
public override void ReadXml(XmlReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | The System.Xml.XmlReader stream from which the object is deserialized. |
Overrides
SetMetaField(String, Object, Boolean)
Sets the named metafield to the value. If validation is enabled, the type of the value is checked and the state of the object is updated.
Declaration
public override void SetMetaField(string fieldName, object value, bool validate = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName | The name of the meta field to set. |
System.Object | value | The value to set in the field. |
System.Boolean | validate | If |
Overrides
SetParent(Object)
Sets the parent.
Declaration
public abstract void SetParent(object Parent)
Parameters
Type | Name | Description |
---|---|---|
System.Object | Parent | The parent. |
WriteXml(XmlWriter)
Converts an object into its XML representation.
Declaration
public override void WriteXml(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | The System.Xml.XmlWriter stream to which the object is serialized |
Overrides
Explicit Interface Implementations
IStorageObject.get_ObjectState()
Declaration
MetaObjectState IStorageObject.get_ObjectState()
Returns
Type | Description |
---|---|
MetaObjectState |