mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Update .net framework project
This commit is contained in:
parent
16e68b7ecb
commit
f03d844262
@ -285,6 +285,7 @@ namespace SqlSugar
|
||||
column.IsArray = sugarColumn.IsArray;
|
||||
column.IsTreeKey = sugarColumn.IsTreeKey;
|
||||
column.SqlParameterDbType = sugarColumn.SqlParameterDbType;
|
||||
column.SqlParameterSize = sugarColumn.SqlParameterSize;
|
||||
column.CreateTableFieldSort = sugarColumn.CreateTableFieldSort;
|
||||
if (sugarColumn.IsJson && String.IsNullOrEmpty(sugarColumn.ColumnDataType))
|
||||
{
|
||||
|
@ -40,5 +40,6 @@ namespace SqlSugar
|
||||
public Type UnderType { get; set; }
|
||||
public Navigate Navigat { get; set; }
|
||||
public int CreateTableFieldSort { get; set; }
|
||||
public int? SqlParameterSize { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -205,6 +205,7 @@ namespace SqlSugar
|
||||
}
|
||||
|
||||
public object SqlParameterDbType { get; set; }
|
||||
public int? SqlParameterSize { get; set; }
|
||||
public int CreateTableFieldSort { get; set; }
|
||||
}
|
||||
|
||||
|
@ -177,7 +177,12 @@ namespace SqlSugar
|
||||
EntityColumnInfo columnInfo = GetColumnInfo(oppoSiteExpression);
|
||||
if (columnInfo != null && columnInfo.SqlParameterDbType != null && columnInfo.SqlParameterDbType is System.Data.DbType)
|
||||
{
|
||||
this.Context.Parameters.Add(new SugarParameter(appendValue, value, (System.Data.DbType)columnInfo.SqlParameterDbType));
|
||||
var p = new SugarParameter(appendValue, value, (System.Data.DbType)columnInfo.SqlParameterDbType);
|
||||
if (columnInfo.SqlParameterSize != null)
|
||||
{
|
||||
p.Size = columnInfo.SqlParameterSize.Value;
|
||||
}
|
||||
this.Context.Parameters.Add(p);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user