Class ContentVersionDB
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Inherited Members
Namespace: EPiServer.DataAccess.Internal
Assembly: EPiServer.dll
Version: 11.20.7Syntax
[ServiceConfiguration]
public class ContentVersionDB : DataAccessBaseConstructors
ContentVersionDB(IDatabaseExecutor, DatabaseDateTimeHandler, ILanguageBranchRepository)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Saves the common draft.
Declaration
public void SaveCommonDraft(int workID)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | workID | The work ID. | 
SaveCommonDraft(Int32, Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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) | 
