Class MetaDataCommitter
This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Commits content property values to the corresponding meta data plus storage format.
Inheritance
Namespace: EPiServer.Commerce.Catalog.Provider.Persistence
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
public class MetaDataCommitter : ObjectRemarks
This committer works with published version only. Use the ContentVersionCommitter to work with draft version.
Constructors
MetaDataCommitter(MetaDataPropertyMapper, IMarketService, MetaDataPropertyConfiguration, ReferenceConverter, CatalogMetaObjectRepository)
Initializes a new instance of the MetaDataCommitter class.
Declaration
public MetaDataCommitter(MetaDataPropertyMapper metaDataPropertyMapper, IMarketService marketService, MetaDataPropertyConfiguration metaDataPropertyConfiguration, ReferenceConverter referenceConverter, CatalogMetaObjectRepository catalogMetaObjectRepository)Parameters
| Type | Name | Description | 
|---|---|---|
| MetaDataPropertyMapper | metaDataPropertyMapper | The meta data property mapper. | 
| IMarketService | marketService | The market service. | 
| MetaDataPropertyConfiguration | metaDataPropertyConfiguration | The catalog meta data property configuration. | 
| ReferenceConverter | referenceConverter | The reference converter. | 
| CatalogMetaObjectRepository | catalogMetaObjectRepository | The meta object repository. | 
Methods
CommitMetaAttributes<T>(T, Int32)
This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code. Commits the meta attributes.
Declaration
public virtual void CommitMetaAttributes<T>(T content, int objectId)
    where T : CatalogContentBase, IMetaClassParameters
| Type | Name | Description | 
|---|---|---|
| T | content | The content. | 
| System.Int32 | objectId | The object ID. | 
Type Parameters
| Name | Description | 
|---|---|
| T | 
CommitMetaAttributes<T>(IEnumerable<T>, Boolean)
This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code. Commits the meta attributes.
Declaration
public virtual void CommitMetaAttributes<T>(IEnumerable<T> contents, bool syncDraft = false)
    where T : CatalogContentBase, IMetaClassParameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<T> | contents | The content. | 
| System.Boolean | syncDraft | The flag to indicate if we should sync back to draft version or not. | 
Type Parameters
| Name | Description | 
|---|---|
| T | 
CommitMetaAttributes<T>(IEnumerable<T>, Int32, Boolean)
This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code. Commits the meta attributes.
Declaration
public virtual void CommitMetaAttributes<T>(IEnumerable<T> contents, int objectId, bool syncDraft = false)
    where T : CatalogContentBase, IMetaClassParameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<T> | contents | The content map. | 
| System.Int32 | objectId | The object id. | 
| System.Boolean | syncDraft | The flag to indicate if we should sync back to draft version or not. | 
Type Parameters
| Name | Description | 
|---|---|
| T | 
