mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Update SqlParameterDbType
This commit is contained in:
@@ -308,6 +308,15 @@ namespace SqlSugar
|
||||
else
|
||||
{
|
||||
whereString += Builder.GetTranslationColumnName(item) + "=" + this.Context.Ado.SqlParameterKeyWord + item;
|
||||
var columnInfo = GetColumnInfo(item);
|
||||
if (columnInfo != null&&columnInfo.SqlParameterDbType is System.Data.DbType valueDbType)
|
||||
{
|
||||
var p=this.Parameters?.FirstOrDefault(it => it.ParameterName == this.Context.Ado.SqlParameterKeyWord + item);
|
||||
if (p != null)
|
||||
{
|
||||
p.DbType = valueDbType;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user