mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 10:10:16 +08:00
Add SugarColumn InsertServerTime
Add SugarColumn InsertSql
This commit is contained in:
parent
962bab55cf
commit
0a6139c134
@ -291,6 +291,8 @@ namespace SqlSugar
|
||||
column.SqlParameterDbType = sugarColumn.SqlParameterDbType;
|
||||
column.SqlParameterSize = sugarColumn.SqlParameterSize;
|
||||
column.CreateTableFieldSort = sugarColumn.CreateTableFieldSort;
|
||||
column.InsertServerTime = sugarColumn.InsertServerTime;
|
||||
column.InsertSql = sugarColumn.InsertSql;
|
||||
if (sugarColumn.IsJson && String.IsNullOrEmpty(sugarColumn.ColumnDataType))
|
||||
{
|
||||
if (this.Context.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
|
||||
|
@ -210,7 +210,9 @@ namespace SqlSugar
|
||||
DbColumnName = column.DbColumnName,
|
||||
PropertyName = column.PropertyName,
|
||||
PropertyType = UtilMethods.GetUnderType(column.PropertyInfo),
|
||||
TableId = i
|
||||
TableId = i,
|
||||
InsertSql = column.InsertSql,
|
||||
InsertServerTime = column.InsertServerTime
|
||||
};
|
||||
if (column.DbColumnName == null)
|
||||
{
|
||||
|
@ -26,6 +26,8 @@ namespace SqlSugar
|
||||
public bool IsJson { get; set; }
|
||||
public bool? IsUnsigned { get; set; }
|
||||
public int CreateTableFieldSort { get; set; }
|
||||
public string InsertServerTime { get; set; }
|
||||
public string InsertSql { get; set; }
|
||||
internal object SqlParameterDbType { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -41,5 +41,7 @@ namespace SqlSugar
|
||||
public Navigate Navigat { get; set; }
|
||||
public int CreateTableFieldSort { get; set; }
|
||||
public object SqlParameterSize { get; set; }
|
||||
public string InsertSql { get; set; }
|
||||
public string InsertServerTime { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -207,6 +207,8 @@ namespace SqlSugar
|
||||
public object SqlParameterDbType { get; set; }
|
||||
public object SqlParameterSize { get; set; }
|
||||
public int CreateTableFieldSort { get; set; }
|
||||
public string InsertServerTime { get; set; }
|
||||
public string InsertSql { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user