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 4086578
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:44:43+00:00 2026-05-20T18:44:43+00:00

LINQ2SQL is pretty good. Easy to build entity classes and use it. but what

  • 0

LINQ2SQL is pretty good. Easy to build entity classes and use it.

but what if I don’t know at compile time nothing about the database, and tables?

but I need to query “Foo” table in “FooDb”;

Can I run Linq queries against a DB without any Entity classes?

Could you show me an example?

  • 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-20T18:44:44+00:00Added an answer on May 20, 2026 at 6:44 pm

    Linq2Sql is an ORM – an Object Relational Mapper.

    As such, it needs to know the database structure in order to generate classes that you can interact with, before your application is compiled.

    In short, what you are asking is not possible with Linq2Sql or any other ORM I know of.


    You can create an application that will query the system tables and generate and load classes for you, but I wouldn’t know how you would interact with them in code without knowing the structures in advance.

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

Sidebar

Related Questions

I am long time user of LINQ2SQL, but have not used the Entity Framework
Been succcesfully adding records using Linq2Sql with the linq2sql genereated classes, works great.. But
I am a HUGE LINQ2SQL Fan. But I use a lot of DataContext in
I'm trying to retrieve a single entity from a Linq2Sql query, but I'm having
It seems Linq2sql doesn't know how to construct the TSQL while you transform linq2sql
I have two classes generated by LINQ2SQL both from the same table so they
I am trying to use Linq2Sql to return all rows that contain values from
I'm using Linq2SQL and I'm pretty new to it. I've got a User table
When we use LINQ2SQL queries, the result of the T-SQL it creates is very
I have been using automapper pretty successfully lately but i have come across a

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.