Skip to content

Commit

Permalink
hashset references replace by list
Browse files Browse the repository at this point in the history
  • Loading branch information
pimbrouwers committed Apr 4, 2024
1 parent 15acfdc commit 309b2e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Spiffy/Extensions/DbCommandExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public async static Task ExecManyAsync(this DbCommand dbCommand, IEnumerable<DbP

/// <summary>
/// Asynchronously execute parameterized query and return single object value.
/// </summary>
/// </summary>
/// <param name="dbCommand"></param>
/// <returns></returns>
public static async Task<object> ScalarAsync(this DbCommand dbCommand) =>
Expand All @@ -50,7 +50,7 @@ await dbCommand.DoAsync(async cmd =>
{
using (var rd = await dbCommand.TryExecuteReaderAsync(commandBehavior))
{
var records = new HashSet<T>();
var records = new List<T>();

while (rd.Read())
{
Expand Down
2 changes: 1 addition & 1 deletion src/Spiffy/Extensions/IDbCommandExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static IEnumerable<T> Query<T>(this IDbCommand dbCommand, Func<IDataReade
{
using (var rd = cmd.TryExecuteReader(commandBehavior))
{
var records = new HashSet<T>();
var records = new List<T>();

while (rd.Read())
{
Expand Down

0 comments on commit 309b2e6

Please sign in to comment.