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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:49:12+00:00 2026-06-06T00:49:12+00:00

In one of my projects, I’m using an n-tier architecture DAL (Repository Pattern) <->

  • 0

In one of my projects, I’m using an n-tier architecture

DAL (Repository Pattern) <-> BLL (POCO Services) <-> Web UI (ASP.NET MVC)

I created a generic repository and everything is fine on the DAL layer.

in the Business Logic Layer, I have my service methods which operates like (the example I love to use because of Pizza 🙂

myOven.Bake(myPizza);

even though, I need some specific information which are internal to the object myPizza, like this:

myPizza.GetBakeTime();

I know, I can use something like:

myOven.GetBakeTimeFor(myPizza);

which can calculate it, but I don’t want to put that specific logic into the myOven object (the service layer here), instead, I want to include that in myPizza, like

public partial class Pizza
{
    public double GetBakeTime()
    {
        // calculate Bake Time and return, based on other variables
    }
}

I mean, to extend my ORM-generated class and provide this functionality.

My question: I know, that this can be done theoretically but is there any considerations should I take into account when using both Domain Logic and Business Logic for the same class?

  • 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-06T00:49:14+00:00Added an answer on June 6, 2026 at 12:49 am

    The Domain Layer should handle ONLY business related functionality. The Repository handles persistence of data. Those two have different purposes and should not be mixed together.

    Also the Domain layer pretty much is the Business Layer. For this particular example, where you only want the baking time, then a specialized query repository should know the answer without involving the Domain (because it’s precomputed). If you want to know how much time is left for baking, then a Service (part of the Domain) can get the value using the Oven and Pizza entities.

    However, this is already too specific and might not be suitable at all for the real problem you want to solve.

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

Sidebar

Related Questions

I'm working on a solution that has two projects: One ASP.NET web application, and
I have a ASP.NET Web application which has 2 projects (one for UI and
I have two projects.One project is build in MVC asp.net and the other project
I have an older asp.net mvc solution (s#arp framework) whith two projects one for
I have a solution with 3 projects.One of UI (contains web pages) and one
I've got a solution with many projects One of these proejcts is a MyProject.Web
In one of my projects, I have a very active classic ASP site with
For one of my projects, I'm using the DOMDocument class to load and manipulate
My scenario is as follows, a .NET 4.0 Solution with several projects (one host
One of projects in our solution references a third party .NET C++ assembly which

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.