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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:17:06+00:00 2026-05-19T04:17:06+00:00

I am trying to jump from ASP Classic to asp.net. I have followed tutorials

  • 0

I am trying to jump from ASP Classic to asp.net. I have followed tutorials to get Entity Framework and LINQ to connect to my test database, but I am having difficulties figuring out ExecuteQuery(). I believe the problem is that I need an “entity class” for my database, but I can’t figure out how to do it. Here is my simple code:

Dim db as New TestModel.TestEntity
Dim results AS IEnumerable(OF ???) = db.ExecuteQuery(Of ???)("Select * from Table1")

From the microsoft example site, they use an entity class called Customers, but I don’t understand what that means.

  • 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-19T04:17:06+00:00Added an answer on May 19, 2026 at 4:17 am

    Entity Framework comes with a visual designer. In that designer, you connect to your existing database, and you select all the tables (and possibly views) from your database that you want to work with.

    From that selection, EF will generate entity classes one for each of your tables, e.g. if you have a Customers table, you’ll get a Customer class, if you have a Products table, you get a Product class.

    Those classes represent (by default) your table structure 1:1 – e.g. each column in your table gets translated into a property on the class.

    Once you have that, you’re no longer dealing with SQL statements and stuff like ExecuteQuery() – you leave that to EF to handle for you.

    You just ask for what you need, e.g. all your customers from a given state:

    var ohioCustomers = from c in dbContext.Customers
                        where c.State = "OH"
                        select c;
    

    This statement will return an IEnumerable<Customer> – a list of customers that matches your search criteria.

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

Sidebar

Related Questions

Trying to write a javascript bookmarklet to jump from a front end link into
I am using Web Forms Routing in ASP.NET 4 and I am trying to
I am trying to develop a game in Unity where you jump from 2D
I am trying to make the jump from data-centric design and development into DDD
I'm trying to make the jump from procedural code to the PDO class, and
I'm trying to jump through some hoops to organize data in a special way.
I am trying to create a jump method in XNA, but I am facing
Trying to get a wildcard search to pick up on any text in org_name
I'm trying to jump into PHP and I want to move a current web
I'm trying to do a relative jump in x86 assembly, however I can not

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.