Class TemplateModelRepositoryExtensions

Provides extension methods for the ITemplateRepository interface.

Inheritance
System.Object
TemplateModelRepositoryExtensions
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
public static class TemplateModelRepositoryExtensions

Methods

AddTemplate(ITemplateRepository, TemplateModel)

Registers a template for the model type specified by the ModelType property of the template.

Declaration
public static void AddTemplate(this ITemplateRepository repository, TemplateModel template)
Parameters
Type Name Description
ITemplateRepository repository

The repository that is extended

TemplateModel template

The template that should be registered.