mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 02:14:44 +08:00
代码生成的字段Comment换成Remark
This commit is contained in:
@@ -35,8 +35,7 @@ namespace OpenAuth.App
|
||||
|
||||
public T Get(string id)
|
||||
{
|
||||
if (SugarClient.CurrentConnectionConfig.DbType == DbType.PostgreSQL
|
||||
|| SugarClient.CurrentConnectionConfig.DbType == DbType.Oracle)
|
||||
if (SugarClient.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
|
||||
{
|
||||
return SugarClient.Queryable<T>().Where("\"Id\"=@id", new {id = id}).First();
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace OpenAuth.App
|
||||
var builderColumn = new BuilderTableColumn
|
||||
{
|
||||
ColumnName = column.ColumnName,
|
||||
Comment = column.Comment,
|
||||
Remark = column.Comment,
|
||||
ColumnType = column.ColumnType,
|
||||
EntityType = column.EntityType,
|
||||
EntityName = column.ColumnName,
|
||||
@@ -178,7 +178,7 @@ namespace OpenAuth.App
|
||||
UnitWork.Update<BuilderTable>(u => u.Id == obj.Id, u => new BuilderTable
|
||||
{
|
||||
TableName = obj.TableName,
|
||||
Comment = obj.Comment,
|
||||
Remark = obj.Remark,
|
||||
ClassName = obj.ClassName,
|
||||
Namespace = obj.Namespace,
|
||||
ModuleCode = obj.ModuleCode,
|
||||
@@ -365,7 +365,7 @@ namespace OpenAuth.App
|
||||
{
|
||||
attributeBuilder.Append("/// <summary>");
|
||||
attributeBuilder.Append("\r\n");
|
||||
attributeBuilder.Append(" ///" + column.Comment + "");
|
||||
attributeBuilder.Append(" ///" + column.Remark + "");
|
||||
attributeBuilder.Append("\r\n");
|
||||
attributeBuilder.Append(" /// </summary>");
|
||||
attributeBuilder.Append("\r\n");
|
||||
@@ -386,7 +386,7 @@ namespace OpenAuth.App
|
||||
var tableAttr = new StringBuilder();
|
||||
tableAttr.Append("/// <summary>");
|
||||
tableAttr.Append("\r\n");
|
||||
tableAttr.Append(" ///" + sysTableInfo.Comment + "");
|
||||
tableAttr.Append(" ///" + sysTableInfo.Remark + "");
|
||||
tableAttr.Append("\r\n");
|
||||
tableAttr.Append(" /// </summary>");
|
||||
tableAttr.Append("\r\n");
|
||||
@@ -463,12 +463,12 @@ namespace OpenAuth.App
|
||||
|
||||
attributeBuilder.Append("/// <summary>");
|
||||
attributeBuilder.Append("\r\n");
|
||||
attributeBuilder.Append(" ///" + column.Comment + "");
|
||||
attributeBuilder.Append(" ///" + column.Remark + "");
|
||||
attributeBuilder.Append("\r\n");
|
||||
attributeBuilder.Append(" /// </summary>");
|
||||
attributeBuilder.Append("\r\n");
|
||||
|
||||
attributeBuilder.Append(" [Description(\""+ column.Comment +"\")]");
|
||||
attributeBuilder.Append(" [Description(\""+ column.Remark +"\")]");
|
||||
attributeBuilder.Append("\r\n");
|
||||
|
||||
string entityType = column.EntityType;
|
||||
@@ -523,7 +523,7 @@ namespace OpenAuth.App
|
||||
|
||||
tableAttr.Append("/// <summary>");
|
||||
tableAttr.Append("\r\n");
|
||||
tableAttr.Append(" ///" + tableInfo.Comment + "");
|
||||
tableAttr.Append(" ///" + tableInfo.Remark + "");
|
||||
tableAttr.Append("\r\n");
|
||||
tableAttr.Append(" /// </summary>");
|
||||
tableAttr.Append("\r\n");
|
||||
@@ -735,7 +735,7 @@ namespace OpenAuth.App
|
||||
foreach (BuilderTableColumn column in syscolums)
|
||||
{
|
||||
headerListBuilder.Append(
|
||||
$" new ColumnDefine('{column.ColumnName.ToCamelCase()}', '{column.Comment}', {column.IsEdit.ToString().ToLower()}, {column.IsList.ToString().ToLower()}, '{column.EditType}', '{column.DataSource}', '{column.EntityType}', '{column.ColumnType}', '{column.EntityName}'),");
|
||||
$" new ColumnDefine('{column.ColumnName.ToCamelCase()}', '{column.Remark}', {column.IsEdit.ToString().ToLower()}, {column.IsList.ToString().ToLower()}, '{column.EditType}', '{column.DataSource}', '{column.EntityType}', '{column.ColumnType}', '{column.EntityName}'),");
|
||||
headerListBuilder.Append("\r\n ");
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace OpenAuth.App
|
||||
TableId = obj.TableId,
|
||||
TableName = obj.TableName,
|
||||
ColumnName = obj.ColumnName,
|
||||
Comment = obj.Comment,
|
||||
Remark = obj.Remark,
|
||||
ColumnType = obj.ColumnType,
|
||||
EntityType = obj.EntityType,
|
||||
EntityName = obj.EntityName,
|
||||
@@ -107,7 +107,7 @@ namespace OpenAuth.App
|
||||
var builderColumn = new BuilderTableColumn
|
||||
{
|
||||
ColumnName = column.ColumnName,
|
||||
Comment = column.Comment,
|
||||
Remark = column.Comment,
|
||||
ColumnType = column.ColumnType,
|
||||
EntityType = column.EntityType,
|
||||
EntityName = column.ColumnName,
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace OpenAuth.App.Request
|
||||
/// <summary>
|
||||
/// 列描述
|
||||
/// </summary>
|
||||
public string Comment { get; set; }
|
||||
public string Remark { get; set; }
|
||||
/// <summary>
|
||||
/// 列类型
|
||||
/// </summary>
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace OpenAuth.App.Request
|
||||
/// <summary>
|
||||
/// 表描述、中文名称
|
||||
/// </summary>
|
||||
public string Comment { get; set; }
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父表ID
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace OpenAuth.App
|
||||
{
|
||||
ColumnName = property.Name,
|
||||
TableName = moduleName,
|
||||
Comment = description,
|
||||
Remark = description,
|
||||
IsList = browsable,
|
||||
ColumnType = typeName
|
||||
});
|
||||
|
||||
@@ -85,8 +85,7 @@ namespace OpenAuth.App
|
||||
}
|
||||
|
||||
var columnnames = columnFields.Select(u => u.ColumnName);
|
||||
if (SugarClient.CurrentConnectionConfig.DbType == DbType.PostgreSQL
|
||||
|| SugarClient.CurrentConnectionConfig.DbType == DbType.Oracle)
|
||||
if (SugarClient.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
|
||||
{
|
||||
columnnames = columnFields.Select(u => "\"" + u.ColumnName +"\"");
|
||||
}
|
||||
|
||||
@@ -41,8 +41,7 @@ namespace OpenAuth.App
|
||||
}
|
||||
|
||||
var columnnames = columnFields.Select(u => u.ColumnName);
|
||||
if (SugarClient.CurrentConnectionConfig.DbType == DbType.PostgreSQL
|
||||
|| SugarClient.CurrentConnectionConfig.DbType == DbType.Oracle)
|
||||
if (SugarClient.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
|
||||
{
|
||||
columnnames = columnFields.Select(u => "\"" + u.ColumnName +"\"");
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace OpenAuth.App.Test
|
||||
app.Add(new AddOrUpdateBuilderTableReq()
|
||||
{
|
||||
TableName = "Stock",
|
||||
Comment = "这是一个普通的应用管理生成模版",
|
||||
Remark = "这是一个普通的应用管理生成模版",
|
||||
ClassName = "Stock",
|
||||
Namespace = "OpenAuth.Repository.Domain",
|
||||
ModuleCode = "StockApp",
|
||||
|
||||
Reference in New Issue
Block a user