代码生成Csharp数据类型改为配置文件

This commit is contained in:
不做码农
2023-06-18 21:36:03 +08:00
parent f848aa94ac
commit 2c287f66f3
4 changed files with 133 additions and 61 deletions

View File

@@ -1,4 +1,5 @@

using System;
using System.Collections.Generic;
namespace Infrastructure
@@ -80,7 +81,11 @@ namespace Infrastructure
public class Gen
{
public string Database { get; set; }
public bool AutoPre { get; set; }
public string VuePath { get; set; }
public string Author { get; set; }
public DbConfigs GenDbConfig { get; set; }
public CsharpTypeArr CsharpTypeArr { get; set; }
}
public class DbConfigs
@@ -95,4 +100,15 @@ namespace Infrastructure
public bool IsGenerateDb { get; set; }
public string DbName { get; set; }
}
public class CsharpTypeArr
{
public string[] String { get; set; }
public string[] Int { get; set; }
public string[] Long { get; set; }
public string[] DateTime { get; set; }
public string[] Float { get; set; }
public string[] Decimal { get; set; }
public string[] Bool { get; set; }
}
}