8000 suggestion: set the optional "name" property when creating an Expression.Parameter · Issue #15 · alexmurari/Exprelsior · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
suggestion: set the optional "name" property when creating an Expression.Parameter #15
Open
@sw34

Description

@sw34

First, thank you so much for publishing this project, I was looking for a lightweight way of passing and building filters and this is a great solution.

The name property of the Parameter constructor is optional but I was using this to build filters for an app using MongoDB Driver for C# and it required the name property to be set for some reason.

https://docs.microsoft.com/en-us/dotnet/api/system.linq.expressions.expression.parameter

in ExpressionBuilder\ExpressionBuilder.cs line 170 change from:

var param = Expression.Parameter(typeof(T));

to

var param = Expression.Parameter(typeof(T), propertyNameOrPath);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0