Class TemplateModelRepositoryExtensions
Provides extension methods for the ITemplateRepository interface.
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 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. |