Add SugarColumn InsertSql
@ -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 object SqlParameterSize { get; set; }
@ -207,6 +207,8 @@ namespace SqlSugar
public object SqlParameterDbType { get; set; }