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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:06:16+00:00 2026-06-01T11:06:16+00:00

I have a solution in VS2010 with several projects, each making up a layer

  • 0

I have a solution in VS2010 with several projects, each making up a layer within my application. I have business entities which are currently objects with no methods, and I have a management layer which references the business entities layer in it’s project. I now think I have designed my application poorly and would like to move methods from helper classes (which are in another layer) into methods I’ll create within the business entities themselves.

For example I have a VirtualMachine object, which uses a helper class to call a Reboot() method on it which passes the request to the management layer. The static manager class talks to an API that reboots the VM. I want to move the Reboot() method into the VirtualMachine object, but I will need to reference the management layer:

public void Reboot()
{  
    VMManager.Reboot(this.Name);
}

So if I add a reference to my management project in my entities project, I get the circular dependency error, which is how it should be. How can I sort this situation out? Do I need to an yet another layer between the entity layer and the management layer? Or, should I just forget it and leave it as it is.

The application works ok now, but I am concerned my design isn’t particularly OOP centric and I would like to correct this.

  • 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-01T11:06:18+00:00Added an answer on June 1, 2026 at 11:06 am

    You are correct, you should not make circular references, making another layer might just help you avoid the circular reference error, but it will still be a circular reference, if i understood you correctly.

    I would sit down, draw a map and methods should ONLY call down in layers. That is the most general methods at the “bottom” of the program, and the more specialized you get the higher up in the hierarchy you should put it.

    The API of the program you are making should be on the bottom of this hierarchy.

    You might not need to redesign your whole project. But it sounds like you could help yourself with visualizing the structure.

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

Sidebar

Related Questions

I have a solution consisting of five projects, each of which compile to separate
I have a web solution (in VS2010) with two sub-projects: Domain which holds the
I have a VS2010 solution with several projects in it. These projects are winforms
I have a big VS2010 solution, which contains a bunch of C# projects. One
In my VS2010, I have a Solution which contains 2 projects. Test (my default
Currently I have solution A that contains a domain layer base and solution B
I have a solution with several projects. One of them is a setup project.
I have a solution with several Silverlight Class Libraries and a Silverlight Application in
I have a VS2010 solution with 5 projects. Two of these projects are called:
I have VS2010 and solution with many projects, I want to add MSBuild script

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.