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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:53:53+00:00 2026-05-23T22:53:53+00:00

I have a ASP.NET MVC solution with three projects: SquarkMVC SquarkBLL SquarkDAL The SquarkDAL

  • 0

I have a ASP.NET MVC solution with three projects:

  1. SquarkMVC
  2. SquarkBLL
  3. SquarkDAL

The SquarkDAL layer has Linq2SQL classes for each object in the DB. BLL references the DAL in order to conduct business logic on the DB.

My question is this… without having to reference the DAL in the MVC layer, how should I model the entities of the DB in the MVC layer? For instance, if I have a sign up form in the MVC layer, what is the best way to take that information, pass it to the Business Layer which then passes it on to the Data Layer? I don’t want the MVC layer to know anything about the DAL.

I’ve found this answer on another post… is it generally agreed that the best way to overcome this is to create a transfer object in order to pass the information from the presentation layer, to the business layer, which will then convert the information into the entity classes used by the DAL?

Hope this makes sense.

  • 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-23T22:53:54+00:00Added an answer on May 23, 2026 at 10:53 pm

    Using objects is a common way to do this. Usually DTOs (Data Transfer Objects) are “dumb” POCOs having a set of properties, and acts like a “struct”, but, if you put on them validation and more logic (view logic) you have a view model and you can use them to work with the controller. This one should use the model (of the Business Layer).

    More, Business Layer should never having a reference to the DAL, because your business model should be independent by the storage.
    Instead, the data access layer should reference the model, and choose the right way for persistence. You can achieve it with the Repository pattern.

    Anyway there are a lot of books about domain driven design.

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

Sidebar

Related Questions

I have a Solution with several projects in it, including two asp.net mvc projects
I have a .NET solution containing two projects: An ASP.NET MVC project, 'Website' A
Here is my scenario. I have an ASP.NET MVC solution with 3 projects. Data,
I have three projects: TestNHibernateMappings - A console project WebApplicationPbiBoard - An Asp.Net MVC
I've created an ASP.NET MVC 3 solution. It consists of three separate projects. I'm
We have an ASP.Net MVC solution built in VS2008 and TFS2008. We use TFS
We have an ASP.Net MVC 1.0 solution developed using Visual Studio 2008 and .net
I have a new solution that is an ASP.NET MVC 2.0 application. I have
Hi I have a Visual Studio solution and an ASP.NET MVC project that uses
we have a Asp.Net MVC 2.0 application. In Vs2010 solution Explorer there is only

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.