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: 10.8.0Syntax
public class CatalogContentVersionDB
Constructors
CatalogContentVersionDB(ReferenceConverter, IPermanentLinkMapper)
Initializes a new instance of the CatalogContentVersionDB class.
Declaration
public CatalogContentVersionDB(ReferenceConverter referenceConverter, IPermanentLinkMapper permanentLinkMapper)
Parameters
Type | Name | Description |
---|---|---|
ReferenceConverter | referenceConverter | The reference converter. |
EPiServer.Web.IPermanentLinkMapper | permanentLinkMapper | The permanent link mapper. |
Methods
List(ContentReference)
Lists all versions of an item.
Declaration
[Obsolete("This is no longer used, for performance and API usability reasons. Use List(IEnumerable<ContentReference>) instead. Will remain at least until March 2017.")]
public virtual DataTable List(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Core.ContentReference | contentLink | The content link. |
Returns
Type | Description |
---|---|
System.Data.DataTable |
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. |
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. |