添加代码生成器模块service实现

This commit is contained in:
橙子
2023-01-03 20:06:16 +08:00
parent 53b4674da4
commit 62c5470efe
8 changed files with 119 additions and 538 deletions

View File

@@ -4,11 +4,17 @@ using Yi.Framework.Template.Provider;
TemplateFactory templateFactory = new();
//选择需要生成的模板提供者
string modelName = "ERP";
string entityName = "Test";
templateFactory.CreateTemplateProviders((option) =>
{
option.Add(new ServceTemplateProvider());
option.Add(new ServceTemplateProvider(modelName, entityName));
});
//开始构建模板
templateFactory.BuildTemplate();
templateFactory.BuildTemplate();
Console.WriteLine("Yi.Framework.Template模板生成完成");
Console.ReadKey();