Stef Heyenrath
Stef Heyenrath
Some short comment on: > We have a number of permissions services that can take a right, as represented by an Enum, and output an IQueryable that represents the complete...
About option 2: It's possible to determine if the method call is a special method call, the same is also done here: [System.Linq.Dynamic.Core/Parser/ExpressionParser.cs](https://github.com/StefH/System.Linq.Dynamic.Core/blob/c814eb2c7a8e131b86473b1a7ad8b23ab92676e0/src/System.Linq.Dynamic.Core/Parser/ExpressionParser.cs#L1638) With the help from this class: https://github.com/StefH/System.Linq.Dynamic.Core/blob/master/src/System.Linq.Dynamic.Core/Parser/SupportedMethods/IQueryableSignatures.cs...
@TimHambourger An out of the box question: Why not use the the **AsExpandable()** only on the final last statement? ``` c# var expandableIds1 = db.MyModels.Where(m => m.Id < 4).Select(m =>...
@btihanyi and @Thorium Thanks for researching. @dr130873 Can this issue be closed?
... work in progress ...
This library cannot do that, however I think that [Linq.PropertyTranslator.Core](https://github.com/StefH/Linq.PropertyTranslator.Core) with [QueryInterceptor.Core](https://github.com/StefH/QueryInterceptor.Core)can do this. Example: ``` c# public class Customer { private static readonly CompiledExpressionMap hasPurchasesExpression = DefaultTranslationOf.Property(p => p.HasPurchases).Is(p...
Good question. If you are just using Linq, this works fine: ``` c# void Main() { var devices = new[] { new DeviceEntity { DeviceTypeId = "1111" } }.AsQueryable(); var...
If the `Predicate` property was public on the `ExpressionStarter{T}`, you could have done this: ``` c# Expression predicate = condition.Predicate; var deviceList2 = from d in devices.AsExpandable() where predicate.Invoke(d) select...
Would the name "StartPredicateWith" be a better name instead of "AppendPredicateWith" ? Because this statement is the first statement you do, and you define what you want: an AND or...
New versions uploaded to NuGet: - https://www.nuget.org/packages/LinqKit/1.1.5 - https://www.nuget.org/packages/LinqKit.Microsoft.EntityFrameworkCore/1.0.3 - https://www.nuget.org/packages/LinqKit.EntityFramework/1.0.2 The extension methods have been added: ``` public static Expression Create(PredicateOperator startOperator = PredicateOperator.Or) public static Expression Extend([NotNull] this...