Skip to content

Commit 36fbd38

Browse files
Cleanup
1 parent f02547f commit 36fbd38

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

Source/Core/Core/QueryResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public QueryResultQueue(
165165
IEnumerable<int> ordinals,
166166
IEnumerable<string> names,
167167
IEnumerable<T> result)
168-
: base(ordinals, names, new (result))
168+
: base(ordinals, names, new(result))
169169
{
170170
}
171171
}

Source/Core/IDbConnectionFactory.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Data.Common;
2-
3-
namespace Open.Database.Extensions;
1+
namespace Open.Database.Extensions;
42

53
/// <summary>
64
/// Common interface for creating a connection. Can easily be used with dependency injection.
@@ -77,7 +75,7 @@ public void Give(IDbConnection connection)
7775
/// <param name="connectionFactory">The connection factory to generate connections from.</param>
7876
/// <returns>An <see cref="ConnectionFactoryToPoolAdapter"/> to handle this factory.</returns>
7977
public static ConnectionFactoryToPoolAdapter AsPool(this IDbConnectionFactory connectionFactory)
80-
=> new (connectionFactory);
78+
=> new(connectionFactory);
8179

8280
/// <inheritdoc cref="AsPool(IDbConnectionFactory)"/>
8381
public static ConnectionFactoryToPoolAdapter AsPool(this Func<IDbConnection> connectionFactory)
@@ -90,7 +88,7 @@ public static ConnectionFactoryToPoolAdapter AsPool(this Func<IDbConnection> con
9088
/// <returns>An <see cref="ConnectionFactoryToPoolAdapter{TConnection}"/> to handle this factory.</returns>
9189
public static ConnectionFactoryToPoolAdapter<TConnection> AsPool<TConnection>(this IDbConnectionFactory<TConnection> connectionFactory)
9290
where TConnection : IDbConnection
93-
=> new (connectionFactory);
91+
=> new(connectionFactory);
9492

9593
/// <inheritdoc cref="AsPool{TConnection}(IDbConnectionFactory{TConnection})"/>
9694
public static ConnectionFactoryToPoolAdapter<TConnection> AsPool<TConnection>(this Func<TConnection> connectionFactory)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
global using System.Data;
1+
global using NSubstitute;
2+
global using Open.ChannelExtensions;
3+
global using System.Data;
24
global using System.Diagnostics.CodeAnalysis;
35
global using System.Threading.Channels;
4-
global using NSubstitute;
56
global using Xunit;
6-
global using Open.ChannelExtensions;

0 commit comments

Comments
 (0)