Files
Yi.Framework/Yi.Framework.Net6/Yi.Framework.Template/Program.cs
2023-01-03 21:03:07 +08:00

20 lines
539 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Yi.Framework.Template;
using Yi.Framework.Template.Provider;
TemplateFactory templateFactory = new();
//选择需要生成的模板提供者
string modelName = "ERP";
string entityName = "Test";
templateFactory.CreateTemplateProviders((option) =>
{
option.Add(new ServceTemplateProvider(modelName, entityName));
option.Add(new IServceTemplateProvider(modelName, entityName));
});
//开始构建模板
templateFactory.BuildTemplate();
Console.WriteLine("Yi.Framework.Template模板生成完成");
Console.ReadKey();