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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:47:28+00:00 2026-05-20T08:47:28+00:00

I’m trying to make simple 3-tier architecture application with ASP.NET and C#. I walked

  • 0

I’m trying to make simple 3-tier architecture application with ASP.NET and C#.
I walked to an problem with circular dependency.
I have Student Class at Business tier.
I have an interface to presentation tier with those methods:

void SaveStudent(Student student);
Student[] GetStudents();

This looks like ok.

But I have also interface from Data Access tier to Business with those methods:

void InsertStudent(Student student);
Student[] ReadAllStudents();

The problem is with Student class.
Because my Business tier depends on DAL, I cannot put reference to Business tier from my data access layer. I know that DAL should not depend from Business tier. But don’t know how to solve that problem.

How should I pass the data then?

If I place Student class to DAL then my presentation tier would be forced to depends on data access layer which isn’t good.

I never tried to make 3 tier architecture before.

How to solve this problem?
Be free to change my interface methods if it is needed.

  • 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-20T08:47:29+00:00Added an answer on May 20, 2026 at 8:47 am

    This problem is generally solved by placing your Student class in a separate Models assembly (call it what you like) which will be shared across all layers. In large scale n-tier architectures these classes will generally contain nothing more than data and are usually referred to as Data Transformation Objects (DTO). Any business logic which acts upon these objects will be held in the Business Layer (BL) which is usually exposed as a service (i.e WCF). The service is just an intermediary, you can design in this way even when all code is sitting on the same machine and even in the same process. As a minimum you want to separate your concerns (UI, Business Layer, DTO, DAL)at the assembly level.

    In your case the GetStudents method would be exposed on the Business Layer Service and would return the Student DTO. The Business Layer would hold a reference to the Data Access Layer (DAL) upon which it would call InsertStudent. Again as I’ve said both the DAL and and BL have a reference to the Models assembly but most importantly the DAL doesn’t have a dependency on the BL.

    Client –> Business Layer Service –> Data Access Layer

    <—————— Student (DTO) ——————>

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to loop through a bunch of documents I have to put
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I am trying to render a haml file in a javascript response like so:
I have this code to decode numeric html entities to the UTF8 equivalent character.
I am doing a simple coin flipping experiment for class that involves flipping 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.