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 :: array.Contains() can be translated #1692

Closed
anfomin opened this issue Feb 24, 2015 · 2 comments
Closed

Query :: array.Contains() can be translated #1692

anfomin opened this issue Feb 24, 2015 · 2 comments

Comments

@anfomin
Copy link

anfomin commented Feb 24, 2015

array.Contains expression can be easily translated into SQL:

var array = new int[] { 1, 2, 3 };
var query = context.SomeSet
    .Where(r => array.Contains(r.Id)); // considering Id is int

Result SQL:

SELECT *
FROM [SomeSet]
WHERE [Id] IN (1, 2, 3)
@anfomin
Copy link
Author

anfomin commented Feb 24, 2015

I've found #1243. I'm sorry, this is duplicate.

@divega divega closed this as completed Feb 24, 2015
@divega
Copy link
Contributor

divega commented Feb 24, 2015

Closing as duplicate per last user comment.

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
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

3 participants