Axel Heer
Axel Heer
You could apply “Lambda Injection” to your `MapperForDTO` and use `ToDTO` directly within your queries. If you need the “expanded” `selectExpression` outside your query, you could use the `InjectLambdaVisitor` somehow...
This isn't possible at the moment, but shouldn't be that hard to implement. I can look into that.
Which error?
Did you update your NuGet Packages too? The current NeinLinq version should work with the current .NET and EF version. I'd need a small repro otherwise.
Mixing properties and static methods has some nasty side effects, if I remember correctly... (thus, the error message "non-static implementation expected"). Try a static extension method `Total(this Whatever ...)` and...
Okay, after further investigation: we have some extra handling for properties on "model" objects, which handles them like static extension methods having one and only one parameter - the parameter...
Yeah, this makes basically sense, but it's somehow different too. ```cs class Order { [InjectLambda] public int Total { get; } // (2) [InjectLambda] public int Total(Foo foo, Bar bar);...
To reproduce this, just add an extension method with the following signature to the web project: ```cs public static string Narf(this TagBuilder tag, TagRenderMode renderMode = TagRenderMode.Normal) ``` Note, using...