23 Authority = authority ??
throw new ArgumentNullException(nameof(authority));
29 ArgumentNullException.ThrowIfNull(authorityInvoker);
34 IQueryable<TApiModel> IAuthorityInvoker<TAuthority>.InvokeTransformableQueryable<TResult, TApiModel, TTransformer>(Func<TAuthority, IQueryable<TResult>> authorityInvoker)
36 ArgumentNullException.ThrowIfNull(authorityInvoker);
38 var queryable = authorityInvoker(
Authority);
40 if (typeof(
EntityId).IsAssignableFrom(typeof(TResult)))
41 queryable = queryable.OrderBy(item => ((
EntityId)(
object)item).
Id!.Value);
43 var expression =
new TTransformer().Expression;