Class DefaultParentRestoreRepository
Default implementation of ParentRestore repository, save, delete and get old parent info from and to DDS
Inheritance
System.Object
DefaultParentRestoreRepository
Implements
Namespace: EPiServer.DataAbstraction.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration(ServiceType = null)]
public class DefaultParentRestoreRepository : Object, IParentRestoreRepository
Constructors
DefaultParentRestoreRepository()
Initializes a new instance of the Default
Declaration
public DefaultParentRestoreRepository()
DefaultParentRestoreRepository(DynamicDataStoreFactory)
Initializes a new instance of the Default
Declaration
public DefaultParentRestoreRepository(DynamicDataStoreFactory storeFactory)
Parameters
Type | Name | Description |
---|---|---|
Dynamic |
storeFactory | The store factory. |
Properties
StoreFactory
Gets the store factory.
Declaration
protected virtual DynamicDataStoreFactory StoreFactory { get; }
Property Value
Type | Description |
---|---|
Dynamic |
StoreName
Gets the name of the store.
Declaration
protected virtual string StoreName { get; }
Property Value
Type | Description |
---|---|
System. |
The name of the store. |
Methods
DeleteParentLink(ContentReference)
Deletes the parent link.
Declaration
public virtual ContentReference DeleteParentLink(ContentReference sourceLink)
Parameters
Type | Name | Description |
---|---|---|
Content |
sourceLink | The source link. |
Returns
Type | Description |
---|---|
Content |
EnsureStore()
Ensures the store.
Declaration
protected virtual void EnsureStore()
Find(ContentReference)
Finds the specified source link.
Declaration
protected virtual ParentRestoreEntity Find(ContentReference sourceLink)
Parameters
Type | Name | Description |
---|---|---|
Content |
sourceLink | The source link. |
Returns
Type | Description |
---|---|
Parent |
GetParentLink(ContentReference)
Gets the parent link.
Declaration
public virtual ContentReference GetParentLink(ContentReference sourceLink)
Parameters
Type | Name | Description |
---|---|---|
Content |
sourceLink | The source link. |
Returns
Type | Description |
---|---|
Content |
SaveParentLink(ContentReference, ContentReference)
Saves the parent link.
Declaration
public virtual void SaveParentLink(ContentReference sourceLink, ContentReference parentLink)
Parameters
Type | Name | Description |
---|---|---|
Content |
sourceLink | The source link. |
Content |
parentLink | The parent link. |