添加模板生成代码

This commit is contained in:
陈淳
2023-01-03 18:05:57 +08:00
parent 8b55373794
commit ff2cf68b08
13 changed files with 683 additions and 452 deletions

View File

@@ -0,0 +1,14 @@
using Yi.Framework.Template;
using Yi.Framework.Template.Provider;
TemplateFactory templateFactory = new();
//选择需要生成的模板提供者
templateFactory.CreateTemplateProviders((option) =>
{
option.Add(new ServceTemplateProvider());
});
//开始构建模板
templateFactory.BuildTemplate();