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

Class TypedContentTypeRepository<TContentType>

Support classic typed BlockType and PageType.

Inheritance
System.Object
TypedContentTypeRepository<TContentType>
Implements
Namespace: EPiServer.DataAbstraction.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class TypedContentTypeRepository<TContentType> : Object, IContentTypeRepository<TContentType> where TContentType : ContentType
Type Parameters
Name Description
TContentType

Constructors

TypedContentTypeRepository(IContentTypeRepository)

Declaration
public TypedContentTypeRepository(IContentTypeRepository contentTypeRepository)
Parameters
Type Name Description
IContentTypeRepository contentTypeRepository

Methods

Copy(TContentType)

Declaration
public virtual TContentType Copy(TContentType blockType)
Parameters
Type Name Description
TContentType blockType
Returns
Type Description
TContentType

Copy(Int32)

Declaration
public virtual TContentType Copy(int id)
Parameters
Type Name Description
System.Int32 id
Returns
Type Description
TContentType

Copy(Type)

Declaration
public virtual TContentType Copy(Type modelType)
Parameters
Type Name Description
System.Type modelType
Returns
Type Description
TContentType

Delete(TContentType)

Declaration
public virtual void Delete(TContentType blockType)
Parameters
Type Name Description
TContentType blockType

Delete(Int32)

Declaration
public virtual void Delete(int id)
Parameters
Type Name Description
System.Int32 id

Delete(Type)

Declaration
public virtual void Delete(Type modelType)
Parameters
Type Name Description
System.Type modelType

Delete<T>()

Declaration
public virtual void Delete<T>()
    where T : TContentType
Type Parameters
Name Description
T

List()

Declaration
public virtual IEnumerable<TContentType> List()
Returns
Type Description
System.Collections.Generic.IEnumerable<TContentType>

Load(Guid)

Declaration
public virtual TContentType Load(Guid guid)
Parameters
Type Name Description
System.Guid guid
Returns
Type Description
TContentType

Load(Int32)

Declaration
public virtual TContentType Load(int id)
Parameters
Type Name Description
System.Int32 id
Returns
Type Description
TContentType

Load(String)

Declaration
public virtual TContentType Load(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
TContentType

Load(Type)

Declaration
public virtual TContentType Load(Type modelType)
Parameters
Type Name Description
System.Type modelType
Returns
Type Description
TContentType

Load<T>()

Declaration
public virtual TContentType Load<T>()
    where T : TContentType
Returns
Type Description
TContentType
Type Parameters
Name Description
T

Save(TContentType)

Declaration
public virtual void Save(TContentType blockType)
Parameters
Type Name Description
TContentType blockType

Implements

Extension Methods