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

Class CatalogContentVersionDB

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Represents Database access class to maipulate Catalog content version.

Inheritance
System.Object
CatalogContentVersionDB
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: EPiServer.Commerce.Catalog.DataAccess
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public class CatalogContentVersionDB

Constructors

CatalogContentVersionDB(ReferenceConverter, IPermanentLinkMapper)

Initializes a new instance of the CatalogContentVersionDB class.

Declaration
[Obsolete("Use the other constructor with IUrlSegmentGenerator instead. Will remain at least until March 2019.")]
public CatalogContentVersionDB(ReferenceConverter referenceConverter, IPermanentLinkMapper permanentLinkMapper)
Parameters
Type Name Description
ReferenceConverter referenceConverter

The reference converter.

EPiServer.Web.IPermanentLinkMapper permanentLinkMapper

The permanent link mapper.

CatalogContentVersionDB(ReferenceConverter, IPermanentLinkMapper, IUrlSegmentGenerator)

Initializes a new instance of the CatalogContentVersionDB class.

Declaration
public CatalogContentVersionDB(ReferenceConverter referenceConverter, IPermanentLinkMapper permanentLinkMapper, IUrlSegmentGenerator urlSegmentGenerator)
Parameters
Type Name Description
ReferenceConverter referenceConverter

The reference converter.

EPiServer.Web.IPermanentLinkMapper permanentLinkMapper

The permanent link mapper.

EPiServer.Web.IUrlSegmentGenerator urlSegmentGenerator

The segment generator.

Methods

List(ContentReference)

Lists the versions of a specific content.

Declaration
public virtual VersionCollection List(ContentReference contentLink)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink

The content link.

Returns
Type Description
VersionCollection

The matching versions.

List(VersionFilter, Int32, Int32)

Lists the versions matching the specified filter, in the specified range.

Declaration
public virtual VersionCollection List(VersionFilter filter, int startIndex, int maxRows)
Parameters
Type Name Description
EPiServer.Core.VersionFilter filter

The filter.

System.Int32 startIndex

The start index.

System.Int32 maxRows

The maximum rows.

Returns
Type Description
VersionCollection

The matching versions.

List(IEnumerable<ContentReference>)

Lists all versions for the supplied EPiServer.Core.ContentReferences.

Declaration
public virtual IEnumerable<ContentVersion> List(IEnumerable<ContentReference> contentLinks)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<EPiServer.Core.ContentReference> contentLinks

The content links to list versions for.

Returns
Type Description
System.Collections.Generic.IEnumerable<EPiServer.DataAbstraction.ContentVersion>

EPiServer.DataAbstraction.ContentVersion instances for the matching versions.

ListObsoleteVersions(Int32, out Int32)

Lists the obsolete versions.

Declaration
public virtual IEnumerable<ContentVersion> ListObsoleteVersions(int maxResultCount, out int totalCount)
Parameters
Type Name Description
System.Int32 maxResultCount

The maximum obsolete versions to retrieve.

System.Int32 totalCount

The total number of obsolete versions returned.

Returns
Type Description
System.Collections.Generic.IEnumerable<EPiServer.DataAbstraction.ContentVersion>

SetCommonDraft(ContentReference)

Sets the specified version as common draft.

Declaration
public void SetCommonDraft(ContentReference contentLink)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink

The content link.