mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 02:29:24 +08:00
根据最新的项目结构调整代码生成器
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user