Class TemplateModelRepositoryExtensions
Provides extension methods for the ITemplate
Inheritance
System.Object
TemplateModelRepositoryExtensions
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3Syntax
public static class TemplateModelRepositoryExtensions : Object
Methods
AddTemplate(ITemplateRepository, TemplateModel)
Registers a template for the model type specified by the Model
Declaration
public static void AddTemplate(this ITemplateRepository repository, TemplateModel template)
Parameters
Type | Name | Description |
---|---|---|
ITemplate |
repository | The repository that is extended |
Template |
template | The template that should be registered. |