提交 217ee439 编写于 作者: S Shay Rojansky

Stop using obsoleted RelationalCommandParameterObject ctor

上级 5547612a
......@@ -90,6 +90,7 @@ public override bool HasTables()
new RelationalCommandParameterObject(
connection,
null,
null,
Dependencies.CurrentContext.Context,
Dependencies.CommandLogger)));
......@@ -101,6 +102,7 @@ public override Task<bool> HasTablesAsync(CancellationToken cancellationToken =
new RelationalCommandParameterObject(
connection,
null,
null,
Dependencies.CurrentContext.Context,
Dependencies.CommandLogger),
cancellationToken: ct), cancellationToken);
......
......@@ -10,7 +10,6 @@
using Microsoft.EntityFrameworkCore.Update;
using Microsoft.EntityFrameworkCore.ValueGeneration;
using Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal;
using Npgsql.EntityFrameworkCore.PostgreSQL.Utilities;
namespace Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal
{
......@@ -56,8 +55,9 @@ protected override long GetNewLowValue()
.ExecuteScalar(
new RelationalCommandParameterObject(
_connection,
null,
null,
parameterValues: null,
readerColumns: null,
context: null,
_commandLogger)),
typeof(long),
CultureInfo.InvariantCulture);
......@@ -73,8 +73,9 @@ await _rawSqlCommandBuilder
.ExecuteScalarAsync(
new RelationalCommandParameterObject(
_connection,
null,
null,
parameterValues: null,
readerColumns: null,
context: null,
_commandLogger),
cancellationToken),
typeof(long),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册