Skip to content

Commit 20d0b6c

Browse files
authored
Make CreateBatchCommand return NpgsqlBatchCommand (#5241)
Closes #5238
1 parent 274a1d1 commit 20d0b6c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/Npgsql/NpgsqlBatch.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ private protected NpgsqlBatch(NpgsqlDataSourceCommand command)
122122
}
123123

124124
/// <inheritdoc />
125-
protected override DbBatchCommand CreateDbBatchCommand()
125+
protected override DbBatchCommand CreateDbBatchCommand() => CreateBatchCommand();
126+
127+
/// <inheritdoc cref="DbBatch.CreateBatchCommand"/>
128+
public new NpgsqlBatchCommand CreateBatchCommand()
126129
=> new NpgsqlBatchCommand();
127130

128131
/// <inheritdoc />
@@ -197,4 +200,4 @@ internal static NpgsqlBatch CreateCachedBatch(NpgsqlConnection connection)
197200
batch.Command.IsCacheable = true;
198201
return batch;
199202
}
200-
}
203+
}

src/Npgsql/PublicAPI.Unshipped.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Npgsql.ChannelBinding
44
Npgsql.ChannelBinding.Disable = 0 -> Npgsql.ChannelBinding
55
Npgsql.ChannelBinding.Prefer = 1 -> Npgsql.ChannelBinding
66
Npgsql.ChannelBinding.Require = 2 -> Npgsql.ChannelBinding
7+
Npgsql.NpgsqlBatch.CreateBatchCommand() -> Npgsql.NpgsqlBatchCommand!
78
Npgsql.NpgsqlConnectionStringBuilder.ChannelBinding.get -> Npgsql.ChannelBinding
89
Npgsql.NpgsqlConnectionStringBuilder.ChannelBinding.set -> void
910
Npgsql.NpgsqlSlimDataSourceBuilder.EnableFullTextSearch() -> Npgsql.NpgsqlSlimDataSourceBuilder!

0 commit comments

Comments
 (0)