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