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

  • Home
  • SEARCH
  • 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 139415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:25:51+00:00 2026-05-11T07:25:51+00:00

I started my website, like stackoverflow, with a little technical debt that I’m trying

  • 0

I started my website, like stackoverflow, with a little technical debt that I’m trying to pay off. Being a contract developer, I’ve been in many places and see many different methods of achieving this result, but the way I’m going is..

Presentation (web)

Business Layer (old fashioned entity classes and BL layer)

Data Layer (DA classes to SQL Server via Stored Proc)

My question primarily concerns the Business Layer. Right now I have an Entity namespace and a BusinessLogic namespace.

The BL has a reference to the DA and the Entity. The Entity has a reference to the DA (The DA is ‘unaware’ of the BL or Entity)

I really want all my churning of turning Data into Entities to occur within the BL — thus the Business Logic. However, I want the Entity to be able to access the BL if need be — and thus remove the Entity’s reference to the DL.

So…

Is is ‘wrong’ to have the BL and Entity objects within the same namespace so they can work together?

Essentially, I’m trying have an entity object like Employee (classic example, eh?) and have the Employee have a

public Hashtable[] SubordinateEmployees 

property that returns a Hashtable of other Employee objects that report to this employee. But I don’t want to load it until it’s needed. So for most employees the property would never get accessed, but when it does, it self-loads with a call to the BL, which calls the DA.

Does the question make sense?

If so, does my solution?

Thanks so much in advance!

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T07:25:51+00:00Added an answer on May 11, 2026 at 7:25 am

    The usual way to deal with the kind of situation your example represents is with facades. Instead of trying to get the subordinate employees from the Employee object, you use a call to the business logic to get it.

    hashtable = BL.GetSubordinateEmployees(supervisor); 

    That way you have a single point of access to the subordinates, and there is only one thing (the BL) accessing the data layer and creating Entities.

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

Sidebar

Ask A Question

Stats

  • Questions 88k
  • Answers 88k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you looking for suggestions try Aptana or Eclipse May 11, 2026 at 5:42 pm
  • Editorial Team
    Editorial Team added an answer EDIT: Seems like inotify is the thing to use. It… May 11, 2026 at 5:42 pm
  • Editorial Team
    Editorial Team added an answer Before I say what I intend to say I would… May 11, 2026 at 5:42 pm

Related Questions

I started my website, like stackoverflow, with a little technical debt that I'm trying
Here are some examples of what I mean: google.com - focus is set on
I would like to have the authentication and registration parts of my website encrypted
I've installed XAMPP Apache server and put my website into htdocs. I've started Apache
I am going to be starting a javascript reporting engine for my website, and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.