BUG:SqlServer Proc Output Decimal(N,N)

This commit is contained in:
sunkaixuan
2024-08-08 10:59:26 +08:00
parent 257b98fb39
commit ee71dd1dbc
3 changed files with 10 additions and 1 deletions

View File

@@ -208,6 +208,11 @@ namespace SqlSugar
get; set;
}
public override byte Scale
{
get;set;
}
public int _Size;
public override int Size

View File

@@ -185,6 +185,10 @@ namespace SqlSugar
{
sqlParameter.SqlDbType = ((SqlDbType)parameter.CustomDbType);
}
if (sqlParameter.Direction == ParameterDirection.Output&&parameter.Scale>0)
{
sqlParameter.Scale = parameter.Scale;
}
++index;
}
return result;

View File

@@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.1.4.167-preview24</version>
<version>5.1.4.167-preview26</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>