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

Class ContentVersionDB

Inheritance
System.Object
ContentVersionDB
Namespace: EPiServer.DataAccess.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
public class ContentVersionDB : DataAccessBase

Constructors

ContentVersionDB(IDatabaseExecutor, DatabaseDateTimeHandler, ILanguageBranchRepository)

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

Declaration
public ContentVersionDB(IDatabaseExecutor databaseHandler, DatabaseDateTimeHandler dateTimeHandler, ILanguageBranchRepository languageBranchRepository)
Parameters
Type Name Description
IDatabaseExecutor databaseHandler
DatabaseDateTimeHandler dateTimeHandler
ILanguageBranchRepository languageBranchRepository

Methods

DeleteVersion(Int32)

Delete a single version of Content This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public void DeleteVersion(int workID)
Parameters
Type Name Description
System.Int32 workID

The work ID.

Remarks

The published version of content cannot be deleted

List(VersionFilter, Int32, Int32, out Int32)

Declaration
public virtual IEnumerable<ContentVersion> List(VersionFilter filter, int startIndex, int maxRows, out int totalCount)
Parameters
Type Name Description
VersionFilter filter
System.Int32 startIndex
System.Int32 maxRows
System.Int32 totalCount
Returns
Type Description
System.Collections.Generic.IEnumerable<ContentVersion>

ListObsoleteVersions(Int32, Int32, out Int32)

Declaration
public virtual IList<ContentVersion> ListObsoleteVersions(int maxPreviouslyPublishedVersions, int maxResultCount, out int totalCount)
Parameters
Type Name Description
System.Int32 maxPreviouslyPublishedVersions
System.Int32 maxResultCount
System.Int32 totalCount
Returns
Type Description
System.Collections.Generic.IList<ContentVersion>

SaveCommonDraft(Int32)

Saves the common draft.

Declaration
public void SaveCommonDraft(int workID)
Parameters
Type Name Description
System.Int32 workID

The work ID.

SaveCommonDraft(Int32, Boolean)

Saves the common draft.

Declaration
public void SaveCommonDraft(int workID, bool force)
Parameters
Type Name Description
System.Int32 workID

The work ID.

System.Boolean force

To force changing common draft (ignore if there are other versions that are common draft)

Extension Methods