Update .net framework project

This commit is contained in:
sunkaixuan 2022-08-19 20:34:35 +08:00
parent 16e68b7ecb
commit f03d844262
4 changed files with 9 additions and 1 deletions

View File

@ -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))
{

View File

@ -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; }
}
}

View File

@ -205,6 +205,7 @@ namespace SqlSugar
}
public object SqlParameterDbType { get; set; }
public int? SqlParameterSize { get; set; }
public int CreateTableFieldSort { get; set; }
}

View File

@ -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
{