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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:31:29+00:00 2026-06-02T07:31:29+00:00

newbie here. I am trying to learn OOD/OOP and read on the net that

  • 0

newbie here. I am trying to learn OOD/OOP and read on the net that I am not supposed convert SQL tables into classes. But I cannot find an explanation why not to do it or which tables to skip. So I made an web application based on the below diagram. It works perfectly well. But I do not use OO. Would someone please explain simply which table should not be mapped into a class and why not. Thank you for your time.
P.S. Please do not use LINQ or NHibernate, etc as I do not understand them. I just need to understand the OOD.

SQL Tables Diagram

  • 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-06-02T07:31:31+00:00Added an answer on June 2, 2026 at 7:31 am

    When designing an application in .NET (and probably most other languages), every table needed by the application becomes its own class, but you can certainly have more classes that are not mapped to table.

    With your program’s requirements in hand, you need to design the database layer (i.e. your tables) to persist any data you want saved in a database. Then – for a small project – each table becomes a class automatically and you can start building more classes to manage these “model” or “entity” classes. Classes mapped to tables are often called entities or models. Classes that are not mapped are just called classes.

    So, in your example, you have four tables, so you will have at LEAST four model classes. You would then design additional non-model classes (as needed and makes sense) to manage your model classes appropriately through your program.

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

Sidebar

Related Questions

I'm a newbie to sql and am trying to follow this example here: http://net.tutsplus.com/tutorials/php/a-better-login-system/
ExtJs/Sencha newbie here. Trying to debug something that does not work in a large
RSpec newbie here. I'm trying to test my models, which have methods that uses
Still a newbie here, forgive me. I'm trying to make a button that will
MVC3 and Entity framework newbie here. I'm trying to write a controller that will
C++ newbie here. I'm trying to figure out the following line that writes a
SQL newbie here :) Here are my tables if anyone's interested. AHH, cant post
Newbie here, I havn't done much membership stuff for asp.net. I am trying to
Hi all regex newbie here., I am trying to write a regex that validates
Java newbie here, I am trying to find the output of the following chunk

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.