Questions tagged [business-logic-layer]

The business logic layer (BLL) is the layer in a multi-layer software architecture which separates the business logic from other layers such as the data access layer (DAL) and user interface (UI or presentation layer).

A business logic layer (BLL) is a software engineering practice of compartmentalizing business rules in a multitier architecture. It separates the business logic from other modules, such as the data access layer (DAL) and user interface (UI). By doing this, the business logic of an application can often withstand modifications or replacements of other tiers.

http://en.wikipedia.org/wiki/Business_logic_layer

207 questions
609
votes
9 answers

Separation of business logic and data access in django

I am writing a project in Django and I see that 80% of the code is in the file models.py. This code is confusing and, after a certain time, I cease to understand what is really happening. Here is what bothers me: I find it ugly that my model level…
87
votes
4 answers

Where does the "business logic layer" fit in to an MVC application?

First, before anyone screams dupe, I had a hard time summarizing it in a simple title. Another title might have been "What is the difference between a domain model and MVC model?" or "What is a model?" Conceptually, I understand a Model to be the…
63
votes
9 answers

Service Layer vs Business Layer in architecting web applications?

I know this might sound silly but I am finding it hard to understand the need of a service layer and its differences with business layer. So, we are using asp.net mvc 2 and have Data Access layer which does all the querying with the database and…
Vishal
  • 12,133
  • 17
  • 82
  • 128
41
votes
4 answers

Domain objects/services and the Business Logic Layer

What are domain objects and domain services in software architecture? I am not familiar with them or how they differ from the business logic layer?
aces.
  • 3,902
  • 10
  • 38
  • 48
25
votes
3 answers

Business Logic Classes Naming

I have a business layer that has some business objects/POCOs/entities/whatever. I also have some repositories for the data access. Up until this point, I've been accessing the repositories directly from my UI layer. I'm at a point where I actually…
Josh Close
  • 22,935
  • 13
  • 92
  • 140
20
votes
8 answers

What exactly consists of 'Business Logic' in an application?

I have heard umpteen times that we 'should not mix business logic with other code' or statements like that. I think every single code I write (processing steps I mean) consists of logic that is related to the business requirements.. Can anyone tell…
Niyaz
  • 53,943
  • 55
  • 151
  • 182
16
votes
5 answers

Business Layer in 3 tier Architecture

I went for an interview, and was asked to show up my Business layer architecture. I have some idea about 3 tier architecture but really no idea, to what to write in front of interviewer. So suppose my project deals with Employees of an organization,…
Sandy
  • 11,332
  • 27
  • 76
  • 122
15
votes
2 answers

django models = business logic + data access? Or data access layer should be separated out from django model?

In Django, the suggested software architecture is to put all business logic and data access in models. But, some colleagues have suggested that the data access layer should be separate from the business logic (business service layer). Their…
13
votes
7 answers

UI, Business Logic Layer, Data Layer and where to put web services

We are developing a web application. We want to possibly reuse the work we do here for a different application that will use the same database, and use the same business rules for reading and writing to said database. Which design would be more…
12
votes
1 answer

Service layer vs business layer - differences?

I have been doing a lot of reading on service layers and business layers and how they compare. I have a read a number of the threads here on StackOverflow on the topic and i still find myself confused as to the differences between the two if there…
12
votes
9 answers

I've never encountered a well written business layer. Any advice?

I look around and see some great snippets of code for defining rules, validation, business objects (entities) and the like, but I have to admit to having never seen a great and well-written business layer in its entirety. I'm left knowing what I…
Scott McKenzie
  • 16,052
  • 8
  • 45
  • 70
11
votes
5 answers

Where does the business logic go in MVC?

I am a beginner to the ASP.Net MVC. After reading many tutorials and digesting its concepts, I have yet to see an approach that clearly demonstrates where does the business logic go. My app will have a lot of use of jQuery AJAX usage (which will be…
sarsnake
  • 26,667
  • 58
  • 180
  • 286
10
votes
2 answers

How to Design Data Transfer Objects in Business Logic Layer

DTO I'm building a Web application I would like to scale to many users. Also, I need to expose functionality to trusted third parties via Web Services. I'm using LLBLGen to generate the data access layer (using SQL Server 2008). The goal is to build…
JustAProgrammer
  • 589
  • 2
  • 8
  • 17
10
votes
4 answers

Entity Framework And Business Objects

I have never used the entity framework before and i would like to try some personal projects implementing it to get my feet wet. I see that entities can be exposed to the presentation layer. But i don't want certain fields exposed, fields like…
BastanteCaro
  • 1,269
  • 1
  • 13
  • 24
9
votes
3 answers

LINQ to Entities through Interface Property

I have a situation where I would like to use a single business logic class to perform similar operations on a variety of entity framework classes. I have defined an interface which these classes implement in a partial class file. However when I try…
1
2 3
13 14