Remove redundant typed fluent wrapper methods

This commit is contained in:
root
2026-02-26 18:40:43 +01:00
parent 33cadaf05b
commit f28549c775
3 changed files with 10 additions and 61 deletions

View File

@@ -31,33 +31,6 @@ namespace DynamORM.Builders
/// <summary>Marker extensions for typed fluent builder expressions.</summary>
public static class TypedFluentExtensions
{
/// <summary>Typed select helper that avoids overload resolution with dynamic methods.</summary>
public static IDynamicTypedSelectQueryBuilder<TModel> SelectTyped<TModel, TResult>(
this IDynamicTypedSelectQueryBuilder<TModel> builder,
System.Linq.Expressions.Expression<System.Func<TModel, TResult>> selector,
params System.Linq.Expressions.Expression<System.Func<TModel, TResult>>[] selectors)
{
return builder.Select(selector, selectors);
}
/// <summary>Typed group by helper that avoids overload resolution with dynamic methods.</summary>
public static IDynamicTypedSelectQueryBuilder<TModel> GroupByTyped<TModel, TResult>(
this IDynamicTypedSelectQueryBuilder<TModel> builder,
System.Linq.Expressions.Expression<System.Func<TModel, TResult>> selector,
params System.Linq.Expressions.Expression<System.Func<TModel, TResult>>[] selectors)
{
return builder.GroupBy(selector, selectors);
}
/// <summary>Typed order by helper that avoids overload resolution with dynamic methods.</summary>
public static IDynamicTypedSelectQueryBuilder<TModel> OrderByTyped<TModel, TResult>(
this IDynamicTypedSelectQueryBuilder<TModel> builder,
System.Linq.Expressions.Expression<System.Func<TModel, TResult>> selector,
params System.Linq.Expressions.Expression<System.Func<TModel, TResult>>[] selectors)
{
return builder.OrderBy(selector, selectors);
}
/// <summary>Marks select projection alias in typed expressions.</summary>
public static T As<T>(this T source, string alias)
{