From e4ac176d67fe0d3b8e6847144695f40cc6b3166e Mon Sep 17 00:00:00 2001 From: Koen Bekkenutte <2912652+kbekkenutte@users.noreply.github.com> Date: Sun, 4 Jul 2021 18:50:30 +0800 Subject: [PATCH] Fixed old name reference --- .../Extensions/ExpressionExtensions.cs | 4 ++++ .../Extensions/QueryableExtensions.cs | 6 +++++- .../Internal/CustomQueryTranslationPreprocessorFactory.cs | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/EntityFrameworkCore.Projectables/Extensions/ExpressionExtensions.cs b/src/EntityFrameworkCore.Projectables/Extensions/ExpressionExtensions.cs index c18048a..0d91dca 100644 --- a/src/EntityFrameworkCore.Projectables/Extensions/ExpressionExtensions.cs +++ b/src/EntityFrameworkCore.Projectables/Extensions/ExpressionExtensions.cs @@ -12,7 +12,11 @@ namespace EntityFrameworkCore.Projectables.Extensions { static ProjectableExpressionReplacer _projectableExpressionReplacer = new ProjectableExpressionReplacer(new ProjectionExpressionResolver()); + [Obsolete("Use ExpandProjectables instead")] public static Expression ExpandQuaryables(this Expression expression) + => ExpandProjectables(expression); + + public static Expression ExpandProjectables(this Expression expression) => _projectableExpressionReplacer.Visit(expression); } } diff --git a/src/EntityFrameworkCore.Projectables/Extensions/QueryableExtensions.cs b/src/EntityFrameworkCore.Projectables/Extensions/QueryableExtensions.cs index fb0a5d6..710dad0 100644 --- a/src/EntityFrameworkCore.Projectables/Extensions/QueryableExtensions.cs +++ b/src/EntityFrameworkCore.Projectables/Extensions/QueryableExtensions.cs @@ -9,7 +9,11 @@ namespace EntityFrameworkCore.Projectables.Extensions { public static class QueryableExtensions { + [Obsolete("Use ExpandProjectables instead")] public static IQueryable ExpandQuaryables(this IQueryable query) - => query.Provider.CreateQuery(query.Expression.ExpandQuaryables()); + => ExpandProjectables(query); + + public static IQueryable ExpandProjectables(this IQueryable query) + => query.Provider.CreateQuery(query.Expression.ExpandProjectables()); } } diff --git a/src/EntityFrameworkCore.Projectables/Infrastructure/Internal/CustomQueryTranslationPreprocessorFactory.cs b/src/EntityFrameworkCore.Projectables/Infrastructure/Internal/CustomQueryTranslationPreprocessorFactory.cs index d561df4..3996ab5 100644 --- a/src/EntityFrameworkCore.Projectables/Infrastructure/Internal/CustomQueryTranslationPreprocessorFactory.cs +++ b/src/EntityFrameworkCore.Projectables/Infrastructure/Internal/CustomQueryTranslationPreprocessorFactory.cs @@ -35,6 +35,6 @@ namespace EntityFrameworkCore.Projectables.Infrastructure.Internal } public override Expression Process(Expression query) - => _decoratedPreprocessor.Process(query.ExpandQuaryables()); + => _decoratedPreprocessor.Process(query.ExpandProjectables()); } } \ No newline at end of file