Skip to content

Commit

Permalink
#849 - Fixes for the Dynamic MergeAll Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mikependon committed Jul 29, 2021
1 parent 21dce5c commit 4331815
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RepoDb.Core/RepoDb/Extensions/DbConnectionExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2652,7 +2652,7 @@ internal static IEnumerable<Field> GetQualifiedFields<TEntity>(TEntity entity)
/// <returns></returns>
internal static IEnumerable<Field> GetQualifiedFields<TEntity>(IEnumerable<Field> fields)
where TEntity : class =>
fields ?? (typeof(TEntity).IsDictionaryStringObject() == false ? FieldCache.Get<TEntity>() : null);
(fields ?? (typeof(TEntity).IsDictionaryStringObject() == false ? FieldCache.Get<TEntity>() : null)).AsList();

/// <summary>
///
Expand All @@ -2664,7 +2664,7 @@ internal static IEnumerable<Field> GetQualifiedFields<TEntity>(IEnumerable<Field
internal static IEnumerable<Field> GetQualifiedFields<TEntity>(IEnumerable<Field> fields,
TEntity entity)
where TEntity : class =>
fields ?? GetQualifiedFields(entity);
(fields ?? GetQualifiedFields(entity)).AsList();

/// <summary>
///
Expand Down Expand Up @@ -2849,7 +2849,7 @@ private static DbCommand CreateDbCommandForExecutionInternal(this IDbConnection
var propertiesToSkip = commandArrayParametersText?.CommandArrayParameters?
.Select(cap => cap.ParameterName)
.ToHashSet(StringComparer.OrdinalIgnoreCase);

command.CreateParameters(param,
propertiesToSkip,
entityType,
Expand Down

0 comments on commit 4331815

Please sign in to comment.