-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Filter by property which is passed as a string variable #101
Comments
Hi! Please attach a complete usage example, starting with creating an ODataQueryBuilder instance. Do I understand correctly that there is a need for a dynamic property name? |
yes A complete example would be: string propertyName = "ODataKind.ODataCode.IdCode";
new ODataQueryBuilder()
.For<ODataTypeEntity>()
.ByList()
.Filter((s,f,_) => f.Property<int>(propertyName) >= 3)
.ToUri(); |
Possibly related #99 |
What do you think about the PR @ZEXSM ? It would be great to have this feature merged. |
Hi,
I have a use case where the user can enter the name of the property which should be used to filter the result set.
Currently this is not possible because
is being rendered as
propertyName eq 'test'
instead of the wanted
myProperty eq 'test'
Do you think you can add such feature ?
Eg. by passing a special static function like so:
Thanks in advance!
The text was updated successfully, but these errors were encountered: