根据最新的项目结构调整代码生成器

This commit is contained in:
yubaolee
2021-04-27 00:10:19 +08:00
parent 0810b0b9c0
commit 785d784759
5 changed files with 50 additions and 65 deletions

View File

@@ -20,5 +20,20 @@ namespace Util{
return SourceTable.Columns.Contains("ParentId")
|| SourceTable.Columns.Contains("CascadeId") ;
}
public static string CreateBlank(int level){
if(level == 1){
return " ";
}
else{
var twoblanks = " ";
for (int i = level-1; i > 1; i--)
{
twoblanks +=twoblanks;
}
return CreateBlank(1) + twoblanks;
}
}
}
}