Browse Source

Compatible with new drivers

pull/8/head
sunkaixuna 3 years ago
parent
commit
34ddcc5568
  1. 4
      Src/Asp.Net/SqlSugar/Realization/SqlServer/SqlServerProvider.cs
  2. 4
      Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/SqlServer/SqlServerProvider.cs

4
Src/Asp.Net/SqlSugar/Realization/SqlServer/SqlServerProvider.cs

@ -138,6 +138,10 @@ namespace SqlSugar
sqlParameter.Value = Convert.ToDateTime("1753/01/01"); sqlParameter.Value = Convert.ToDateTime("1753/01/01");
} }
} }
if (parameter.Direction == 0)
{
parameter.Direction = ParameterDirection.Input;
}
sqlParameter.Direction = parameter.Direction; sqlParameter.Direction = parameter.Direction;
result[index] = sqlParameter; result[index] = sqlParameter;
if (parameter.TypeName.HasValue()) { if (parameter.TypeName.HasValue()) {

4
Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/SqlServer/SqlServerProvider.cs

@ -138,6 +138,10 @@ namespace SqlSugar
sqlParameter.Value = Convert.ToDateTime("1753/01/01"); sqlParameter.Value = Convert.ToDateTime("1753/01/01");
} }
} }
if (parameter.Direction == 0)
{
parameter.Direction = ParameterDirection.Input;
}
sqlParameter.Direction = parameter.Direction; sqlParameter.Direction = parameter.Direction;
result[index] = sqlParameter; result[index] = sqlParameter;
if (parameter.TypeName.HasValue()) { if (parameter.TypeName.HasValue()) {

Loading…
Cancel
Save