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

Query: Add CompileQuery overloads taking upto 15 parameters #20621

Merged
merged 1 commit into from
Apr 14, 2020
Merged

Conversation

smitpatel
Copy link
Member

Part of #20606

Upto 15 parameters are allowed. We cannot go further than that. Our return type is Func<> which does not allow more than 16 in parameters. One fixed parameter is TContext.
Due to same limitation, the CompileAsyncQuery which also takes cancellationToken can support only upto 14 other parameters.

@smitpatel smitpatel requested a review from a team April 14, 2020 01:54
@AndriySvyryd
Copy link
Member

Tests?

@smitpatel
Copy link
Member Author

Do we add test for each overload? There are 100+ of them. The upto 5 ones, we have tests for them already, which are working.

@AndriySvyryd
Copy link
Member

At least for the ones with 15 parameters

Resolves #20606

Upto 15 parameters are allowed. We cannot go further than that. Our return type is Func<> which does not allow more than 16 in parameters. One fixed parameter is TContext.
Due to same limitation, the CompileAsyncQuery which also takes cancellationToken can support only upto 14 other parameters.
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

Successfully merging this pull request may close these issues.

2 participants