Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6856961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:57:18+00:00 2026-05-27T01:57:18+00:00

I have a table of classes already defined, but one request has been to

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:57:18+00:00Added an answer on May 27, 2026 at 1:57 am

    Yes, it is possible.

    // This is the declaration for an array:
    int[] artList = new int [] {14891, 14989, 14899}; 
    // And your query is just fine! Of course, you knew that, right? :)
    var query = from c in classTable where artList.contains(c.classID) select c;
    

    What kept you from trying, again? 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following 3 rails classes, which are all stored in one table,
I have implemented inheritance for two parent classes called Table and Field . Each
I have two classes generated by LINQ2SQL both from the same table so they
I have a few classes, such as those that outline database table structure or
Hi every one I have these classe @Entity @Table(name = login, uniqueConstraints={@UniqueConstraint(columnNames={username_fk})}) public class
I have table inside a div tab. The table has 40 rows in it
I have a table in database which has following structure(data) : +--------------------------+ Organization +--------------------------+
I want tho have I18N categories table. I have followed the jobeet example .
I have been learning Objective-C as my first language and understand Classes, Objects, instances,
I have two tables that have already been created. Document and DocumentStyle . They

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.