Class TemplateModelRepository

Inheritance
System.Object
TemplateModelRepository
Implements
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.DataAbstraction
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[Obsolete("Use ITemplateRepository abstraction instead for equivalent functionality.", true)]
public class TemplateModelRepository : ITemplateRepository

Constructors

TemplateModelRepository()

Declaration
public TemplateModelRepository()

Methods

List(Type)

Declaration
public virtual IEnumerable<TemplateModel> List(Type modelType)
Parameters
Type Name Description
System.Type modelType
Returns
Type Description
System.Collections.Generic.IEnumerable<TemplateModel>

RegisterModelType(Type)

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

RegisterTemplate(TemplateModel)

Declaration
public virtual void RegisterTemplate(TemplateModel template)
Parameters
Type Name Description
TemplateModel template

RegisterTemplate(Type, TemplateModel[])

Declaration
public virtual void RegisterTemplate(Type modelType, params TemplateModel[] templates)
Parameters
Type Name Description
System.Type modelType
TemplateModel[] templates

UnregisterTemplate(Type, TemplateModel)

Declaration
public virtual bool UnregisterTemplate(Type modelType, TemplateModel template)
Parameters
Type Name Description
System.Type modelType
TemplateModel template
Returns
Type Description
System.Boolean

Explicit Interface Implementations

ITemplateRepository.AddModelType(Type)

Declaration
void ITemplateRepository.AddModelType(Type modelType)
Parameters
Type Name Description
System.Type modelType

ITemplateRepository.AddTemplates(Type, TemplateModel[])

Declaration
void ITemplateRepository.AddTemplates(Type modelType, params TemplateModel[] templates)
Parameters
Type Name Description
System.Type modelType
TemplateModel[] templates

ITemplateRepository.List(Type)

Declaration
IEnumerable<TemplateModel> ITemplateRepository.List(Type modelType)
Parameters
Type Name Description
System.Type modelType
Returns
Type Description
System.Collections.Generic.IEnumerable<TemplateModel>

ITemplateRepository.RemoveTemplate(Type, TemplateModel)

Declaration
bool ITemplateRepository.RemoveTemplate(Type modelType, TemplateModel template)
Parameters
Type Name Description
System.Type modelType
TemplateModel template
Returns
Type Description
System.Boolean

Implements

Extension Methods