feat: 代码生成工具5分钟完成参数设置

This commit is contained in:
橙子
2023-02-19 17:04:17 +08:00
parent e6f95d0cd8
commit 0566606bfb
17 changed files with 286 additions and 20 deletions

View File

@@ -13,7 +13,7 @@ namespace Yi.Framework.Template.Abstract
public ModelTemplateProvider(string modelName, string entityName, string nameSpaces) : base(modelName, entityName, nameSpaces)
{
AddIgnoreEntityField(/*"Id", */"TenantId", "IsDeleted", "LastModifierId", "LastModificationTime","OrderNum");
AddIgnoreEntityField(/*"Id", */"TenantId", "IsDeleted", "LastModifierId", "LastModificationTime", "CreatorId");
}
private string entityPath=string.Empty;

View File

@@ -17,10 +17,12 @@ TemplateFactory templateFactory = new();
//string modelName = "Identity";
//string nameSpaces = "Yi.RBAC";
//List<string> entityNames = new() { "_" };
string modelName = "Dictionary";
//string modelName = "Dictionary";
//string nameSpaces = "Yi.RBAC";
//List<string> entityNames = new() { "_", "_" };
string modelName = "Setting";
string nameSpaces = "Yi.RBAC";
List<string> entityNames = new() { "_", "_" };
List<string> entityNames = new() { "_" };
foreach (var entityName in entityNames)