mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 10:38:09 +08:00
Update Demo
This commit is contained in:
@@ -64,7 +64,7 @@ namespace SugarCodeGeneration.Codes
|
||||
xe.Save(xmlPath);
|
||||
}
|
||||
|
||||
public static void CreateBLL(string templatePath, string savePath, List<string> tables)
|
||||
public static void CreateBLL(string templatePath, string savePath, List<string> tables,string classNamespace)
|
||||
{
|
||||
|
||||
string template = System.IO.File.ReadAllText(templatePath); //从文件中读出模板内容
|
||||
@@ -73,7 +73,8 @@ namespace SugarCodeGeneration.Codes
|
||||
{
|
||||
BLLParameter model = new BLLParameter()
|
||||
{
|
||||
Name = item
|
||||
Name = item,
|
||||
ClassNamespace= classNamespace
|
||||
};
|
||||
var result = Engine.Razor.RunCompile(template, templateKey, model.GetType(), model);
|
||||
var cp = savePath + "\\" + item + "Manager.cs";
|
||||
|
Reference in New Issue
Block a user