支持Oracle库、Oracle库代码生成完善

This commit is contained in:
不做码农
2023-06-10 18:26:18 +08:00
parent 9be0036b4e
commit 9f587711f0
23 changed files with 239 additions and 99 deletions

View File

@@ -33,7 +33,7 @@ namespace ZR.Model.System
/// <summary>
/// 文章内容
/// </summary>
[SugarColumn(ColumnDescription = "文章内容", ColumnDataType = "text")]
[SugarColumn(ColumnDescription = "文章内容", ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string Content { get; set; }
/// <summary>
/// 作者名

View File

@@ -16,17 +16,26 @@ namespace ZR.Model.System
[ExcelIgnore]
public string Create_by { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = true)]
[JsonProperty(propertyName: "CreateTime")]
[ExcelColumn(Format = "yyyy-MM-dd HH:mm:ss")]
public DateTime Create_time { get; set; } = DateTime.Now;
/// <summary>
/// 更新人
/// </summary>
[JsonIgnore]
[JsonProperty(propertyName: "UpdateBy")]
[SugarColumn(IsOnlyIgnoreInsert = true, Length = 64, IsNullable = true)]
[ExcelIgnore]
public string Update_by { get; set; }
/// <summary>
/// 更新时间
/// </summary>
//[JsonIgnore]
[SugarColumn(IsOnlyIgnoreInsert = true, IsNullable = true)]
[JsonProperty(propertyName: "UpdateTime")]

View File

@@ -30,7 +30,7 @@ namespace ZR.Model.System
/// <summary>
/// 公告内容
/// </summary>
[SugarColumn(ColumnName = "notice_content", ColumnDataType = "text")]
[SugarColumn(ColumnName = "notice_content", ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string NoticeContent { get; set; }
/// <summary>
/// 公告状态 (0正常 1关闭)

View File

@@ -72,13 +72,13 @@ namespace ZR.Model.System
/// <summary>
/// 请求参数
/// </summary>
[SugarColumn(Length = 2000)]
[SugarColumn(Length = 4000)]
public string OperParam { get; set; }
/// <summary>
/// 返回参数
/// </summary>
[SugarColumn(ColumnDataType = "text")]
[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string JsonResult { get; set; }
/// <summary>

View File

@@ -1,6 +1,5 @@
using Newtonsoft.Json;
using SqlSugar;
using System;
namespace ZR.Model.System
{