I have a table of classes already defined, but one request has been to allow selection based on categories. Rather than creating a new table with the relevant classes categorized, I’d like to instantiate either a String or List that can be traversed to build a query.
For example, the class numbers 14891, 14898, 14899, ect are all Art-style classes.
Is it possible to do something like
int[] artList= {14891, 14989, 14899, .... };
and then build a query like
var query = from c in classTable where artList.contains(c.classID) select c;
I’m a complete newbie to ASP and complicated SQL queries as this, so I appreciate the help.
Yes, it is possible.
What kept you from trying, again? 🙂