增加SQL代码生成模板

This commit is contained in:
izory
2021-09-23 20:54:26 +08:00
parent 95a23340d6
commit 907f96d8bd
9 changed files with 96 additions and 72 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZR.Model.System.Generate;
namespace ZR.CodeGenerator.Model
{
@@ -10,22 +11,7 @@ namespace ZR.CodeGenerator.Model
{
public long TableId { get; set; }
public string[] QueryColumn { get; set; }
/// <summary>
///
/// </summary>
public string dbName { get; set; }
/// <summary>
/// 项目命名空间
/// </summary>
//public string baseSpace { get; set; }
/// <summary>
/// 要生成代码的表
/// </summary>
public string tableName { get; set; }
/// <summary>
/// 要删除表名的字符串用
/// </summary>
//public string replaceTableNameStr { get; set; }
/// <summary>
/// 要生成的文件
/// </summary>
@@ -34,7 +20,7 @@ namespace ZR.CodeGenerator.Model
/// 如果目标文件存在是否覆盖。默认为false
/// </summary>
public bool coverd { get; set; } = true;
public GenTable GenTable { get; set; }
#region
//public string ModelPath { get; set; }
//public string ServicePath { get; set; }