LINQ Equivalent of SQL's "IN" keyword (www.ginktage.com)

submitted by isenthilisenthil(2304) 9 months, 14 days ago

LINQ Equivalent of SQL’s “IN” keyword I came across the requirement to use the “IN” equivalent of LINQ when using Entity Framework . I am sure most of the .NET Developers would also have come across a situation to use “IN” in LINQ . Here’s an example .

2 comments |category: |Views: 35

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 9 months, 14 days ago 0

Very nice, I feel that's actually a pretty nice translation from the SQL equivalent.

Reply

posted by vijaystvijayst(1311) 9 months, 14 days ago 0

Interesting. Will it work with similar names. Assume the table contains "Gautham", and upcoming array contains "Gautham Menon". Will upcoming.Contains(m.Name) correctly leave alone Gautham.

Reply

information Login or create an account to comment on this story