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

Reuse Parameters with LINQ-style queries #670

Open
PeterN opened this issue Oct 21, 2022 · 0 comments
Open

Reuse Parameters with LINQ-style queries #670

PeterN opened this issue Oct 21, 2022 · 0 comments

Comments

@PeterN
Copy link

PeterN commented Oct 21, 2022

In SqlBuilder and ParameterHelper.ProcessParams there is the option to reuse parameters. When using LINQ-style queries, this is hidden away.

  1. Is it possible to expose this?
  2. Does reusing parameters cause issues anywhere?
  3. If not can it just be done always?

Although actually after some testing, I've found that when using ToPageAsync, parameters are not reused in the main part of the query, but they are reused in the Count part, so I guess more needs to be done.

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