I have the following 3 tables as part of a simple "item tagging" schema:
==Items==
- ItemId int
- Brand varchar
- Name varchar
- Price money
- Condition varchar
- Description varchar
- Active bit
==Tags==
- TagId int
- Name varchar
- Active bit
==TagMap==
- TagMapId int
- TagId int (fk)
- ItemId int (fk)
- Active bit
I want to write a LINQ query to bring back Items that match a list of tags (e.g. TagId = 2,3,4,7). In my application context, examples of items would be "Computer Monitor", "Dress Shirt", "Guitar", etc. and examples of tags would be "electronics", "clothing", etc. I would normally accomplish this with a SQL IN Statement.
0 answers
Hot tools Tags
Hot Questions
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
20519
7
13632
4






