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

Is there a way to get access to the expression/search stuff without an instance of an IQueryable/IEnumerable? #35

Open
VictorioBerra opened this issue Jul 3, 2019 · 0 comments

Comments

@VictorioBerra
Copy link

VictorioBerra commented Jul 3, 2019

Ideally, I need something like this:

var searchCustomersByEmployeeNameOrEmailExpression = 
    NinjanyeSearch<Customer>(c => c.Employee.Name, c.Employee.EmailAddress)
    .Containing(viewModel.SearchQuery)
    .AsExpression();

I am trying to build up what is basically a object that holds my search configuration which gets mapped to a request to my API essentially.

I can then save that expression and pass it right to EntityFramework when I am ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant