Skip to content
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

Documentation of supported operations #205

Closed
Enngage opened this issue Oct 13, 2018 · 1 comment
Closed

Documentation of supported operations #205

Enngage opened this issue Oct 13, 2018 · 1 comment

Comments

@Enngage
Copy link

Enngage commented Oct 13, 2018

Thanks for this awesome library, I don't know what I would do without it.

I have request regarding documentation and supported parameters. I'm using this with EF and I had a need to create a order by Len query. I didn't see any obvious ways to do that and using:

query.OrderBy($"Len({FieldName}) DESC");

Does not work because no Len method exists in given type. However, using

query.OrderBy($"{FieldName}.Length DESC");

Works perfectly fine and generates correct SQL query. This was pretty much lucky guess as I didn't even know if its supported. Am I missing something obvious in documentation or in my understanding?

Thanks!

@StefH
Copy link
Collaborator

StefH commented Oct 13, 2018

The documentation is not always very clear, I still need to make time for that.

However, normally methods calls which are present on object in C# .NET can be used in dynamic queries.

See also #54

@StefH StefH closed this as completed Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants