diff --git a/src/EntityFrameworkCore.Projectables/Extensions/ExpressionExtensions.cs b/src/EntityFrameworkCore.Projectables/Extensions/ExpressionExtensions.cs index 43116a5..3de24d8 100644 --- a/src/EntityFrameworkCore.Projectables/Extensions/ExpressionExtensions.cs +++ b/src/EntityFrameworkCore.Projectables/Extensions/ExpressionExtensions.cs @@ -1,23 +1,13 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; -using System.Text; -using System.Threading.Tasks; +using System.Linq.Expressions; using EntityFrameworkCore.Projectables.Services; -namespace EntityFrameworkCore.Projectables.Extensions -{ - public static class ExpressionExtensions - { - [Obsolete("Use ExpandProjectables instead")] - public static Expression ExpandQuaryables(this Expression expression) - => ExpandProjectables(expression); +namespace EntityFrameworkCore.Projectables.Extensions; - /// - /// Replaces all calls to properties and methods that are marked with the Projectable attribute with their respective expression tree - /// - public static Expression ExpandProjectables(this Expression expression) - => new ProjectableExpressionReplacer(new ProjectionExpressionResolver(), false).Replace(expression); - } -} +public static class ExpressionExtensions +{ + /// + /// Replaces all calls to properties and methods that are marked with the Projectable attribute with their respective expression tree + /// + public static Expression ExpandProjectables(this Expression expression) + => new ProjectableExpressionReplacer(new ProjectionExpressionResolver(), false).Replace(expression); +} \ No newline at end of file diff --git a/src/EntityFrameworkCore.Projectables/Extensions/QueryableExtensions.cs b/src/EntityFrameworkCore.Projectables/Extensions/QueryableExtensions.cs index 4be751b..e3e2fa4 100644 --- a/src/EntityFrameworkCore.Projectables/Extensions/QueryableExtensions.cs +++ b/src/EntityFrameworkCore.Projectables/Extensions/QueryableExtensions.cs @@ -1,22 +1,10 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using EntityFrameworkCore.Projectables.Services; +namespace EntityFrameworkCore.Projectables.Extensions; -namespace EntityFrameworkCore.Projectables.Extensions +public static class QueryableExtensions { - public static class QueryableExtensions - { - [Obsolete("Use ExpandProjectables instead")] - public static IQueryable ExpandQuaryables(this IQueryable query) - => ExpandProjectables(query); - - /// - /// Replaces all calls to properties and methods that are marked with the Projectable attribute with their respective expression tree - /// - public static IQueryable ExpandProjectables(this IQueryable query) - => query.Provider.CreateQuery(query.Expression.ExpandProjectables()); - } -} + /// + /// Replaces all calls to properties and methods that are marked with the Projectable attribute with their respective expression tree + /// + public static IQueryable ExpandProjectables(this IQueryable query) + => query.Provider.CreateQuery(query.Expression.ExpandProjectables()); +} \ No newline at end of file