Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: azabluda/InfoCarrier.Core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.1.0
Choose a base ref
...
head repository: azabluda/InfoCarrier.Core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: develop
Choose a head ref
  • 4 commits
  • 2 files changed
  • 2 contributors

Commits on May 5, 2021

  1. Use static instance of Aqua TypeResolver to avoid memory leak in EF C…

    …ore execution plan cache
    vluedeling committed May 5, 2021
    Copy the full SHA
    3e4aa2c View commit details

Commits on May 7, 2021

  1. Copy the full SHA
    e1ad156 View commit details
  2. Merge pull request #4 from vluedeling/dev/issue-3-memleak-anonymous-t…

    …ypes
    
    Use static instance of Aqua TypeResolver to avoid memory leak in EF Core execution plan cache
    azabluda authored May 7, 2021
    Copy the full SHA
    18c0249 View commit details
  3. Copy the full SHA
    9e7831a View commit details
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/InfoCarrier.Core/Client/Storage/Internal/InfoCarrierDatabase.cs
  2. +1 −1 src/InfoCarrier.Core/Server/QueryDataHelper.cs
Original file line number Diff line number Diff line change
@@ -136,7 +136,7 @@ public QueryExecutor(QueryContext queryContext, Expression query, IInfoCarrierCl
this.infoCarrierClient = infoCarrierClient;

IReadOnlyDictionary<string, IEntityType> entityTypeMap = queryContext.Context.Model.GetEntityTypes().ToDictionary(x => x.DisplayName());
ITypeResolver typeResolver = new TypeResolver();
ITypeResolver typeResolver = TypeResolver.Instance;
ITypeInfoProvider typeInfoProvider = new TypeInfoProvider();
this.resultMapper = new InfoCarrierQueryResultMapper(queryContext, typeResolver, typeInfoProvider, entityTypeMap);

2 changes: 1 addition & 1 deletion src/InfoCarrier.Core/Server/QueryDataHelper.cs
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ private static readonly MethodInfo ExecuteExpressionAsyncMethod
private readonly DbContext dbContext;
private readonly IEnumerable<IInfoCarrierValueMapper> valueMappers;
private readonly System.Linq.Expressions.Expression linqExpression;
private readonly ITypeResolver typeResolver = new TypeResolver();
private readonly ITypeResolver typeResolver = TypeResolver.Instance;
private readonly ITypeInfoProvider typeInfoProvider = new TypeInfoProvider();

/// <summary>