You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.3 KiB
2.3 KiB
LINGYUN.Abp.TextTemplating.Application
Module Description
Text templating application service module, implementing management and operation functions for text templates.
Base Modules
- LINGYUN.Abp.TextTemplating.Application.Contracts
- Volo.Abp.TextTemplating
- Volo.Abp.Ddd.Application
Features
- Provides text template definition management services
- TextTemplateDefinitionAppService - Template definition management service
- TextTemplateContentAppService - Template content management service
- Implements the following application service interfaces
- ITextTemplateDefinitionAppService
- ITextTemplateContentAppService
Application Services
- TextTemplateDefinitionAppService
- GetAsync - Get template definition
- GetListAsync - Get template definition list
- CreateAsync - Create template definition
- UpdateAsync - Update template definition
- DeleteAsync - Delete template definition
- TextTemplateContentAppService
- GetAsync - Get template content
- UpdateAsync - Update template content
- DeleteAsync - Delete template content
- RestoreAsync - Restore template content
Permissions
- AbpTextTemplating.TextTemplateDefinitions
- Create - Create template definition
- Update - Update template definition
- Delete - Delete template definition
- AbpTextTemplating.TextTemplateContents
- Update - Update template content
- Delete - Delete template content
How to Use
- Add
AbpTextTemplatingApplicationModuledependency
[DependsOn(typeof(AbpTextTemplatingApplicationModule))]
public class YouProjectModule : AbpModule
{
}
- Inject and use template services
public class YourService
{
private readonly ITextTemplateDefinitionAppService _templateDefinitionAppService;
public YourService(ITextTemplateDefinitionAppService templateDefinitionAppService)
{
_templateDefinitionAppService = templateDefinitionAppService;
}
public async Task ManageTemplateAsync()
{
// Create template definition
var template = await _templateDefinitionAppService.CreateAsync(
new TextTemplateDefinitionCreateDto
{
Name = "TemplateName",
DisplayName = "Template Display Name",
RenderEngine = "Razor"
});
}
}