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

Filter records by collection of parameter sets #20641

Closed
hubert-wojtowicz opened this issue Apr 15, 2020 · 1 comment
Closed

Filter records by collection of parameter sets #20641

hubert-wojtowicz opened this issue Apr 15, 2020 · 1 comment

Comments

@hubert-wojtowicz
Copy link

I am looking for solution described in more detail here here.

What I want to acheive is to generate query like:

SELECT *
FROM Entity
WHERE ( SomeId_1 = SomeId AND DateAt_1 = DateAt)
    OR..
    OR (SomeId_N = SomeId AND DateAt_N = DateAt)

using LINQ extension methods over IQuerable<Entity> interface, for Entity having collumns (among others) SomeId, DateAt.

Lets assume I have:

class SomeIdAtPair
{
   public int SomeId { get;set; }
   public DateTime DateAt { get;set; }
}

and collection of parameters:

var pairs = new List<SomeIdAtPair>
{
    new SomeIdAtPair { ... },
    ...
};

Is it possible or will it be possible in EF Core 3.1+?

@smitpatel
Copy link
Member

Duplicate of #19070

@smitpatel smitpatel marked this as a duplicate of #19070 Apr 15, 2020
@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
Projects
None yet
Development

No branches or pull requests

3 participants