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
9
votes
2 answers

call service vs dao from another service

I have User And Role entities and Service, DAO layers for them. I need Role list from UserService. Which layer should I use from UserService? Call list method of RoleService vs RoleDAO? Which one is common use and why?
Erlan
  • 2,010
  • 1
  • 22
  • 31
9
votes
7 answers

Logic: Database or Application/2 (constraints check)

This is a specific version of this question. I want to check if I am inserting a duplicate row. Should I check it programmatically in my application layer: if (exists(obj)) { throw new…
Manrico Corazzi
  • 11,299
  • 10
  • 48
  • 62
8
votes
5 answers

WCF Service and Business Logic

I am unsure where to place my business logic. I have a WCF service which exposes its methods to my client. Should my business logic go in the service method public User GetUser(int id) { //Retrieve the user from a repository and perform…
ministrymason
  • 1,783
  • 2
  • 20
  • 33
7
votes
5 answers

ASP.Net 2.0 Application without Business Logic Layer?

Is it "acceptable" to have an ASP.Net 2.0 application without the BLL (Business Logic Layer) as the following? SQL Server Data Storage & Stored Procedures Data Link Layer (Strongly Typed Table Adapters) connecting to Stored Procs Presentation Layer…
Ciro Villa
  • 71
  • 1
  • 2
  • 6
7
votes
4 answers

Using Entity Framework generated classes in Business Logic Layer

I have a ASP.net (C#) project that is using a three layer architecture. I started to use Entity Framework in my DAL and the question is to what extent classes generated by Entity Framework can be used in the Business Logic Layer? It is a good idea…
Sorin Antohi
  • 6,145
  • 9
  • 45
  • 71
6
votes
3 answers

Business Layer vs SQL Server

I have an application that does complex calculations for members. Each member can have multiple US states linked to their profile. Each state has got different calculations for each course a member completes. As of now I have been performing the…
mick
  • 139
  • 3
  • 16
6
votes
7 answers

Any suggestions for separating data access, business logic and GUI in Delphi

I want to separate data layer from business logic and business logic from GUI. Diving into web I stumbled upon a few resources but still unable to make my mind clear. Some people talk about patterns some others point various frameworks. My…
codervish
6
votes
3 answers

What should we have in a Business Logic Layer (BLL)

I know this is a very basic question. But I am really not able to comprehend what should we have in BLL. Let me take an example. Let us consider a Login.aspx web page, which is used to facilitate user login. In this case Login.aspx will have two…
Vaibhav Jain
  • 33,887
  • 46
  • 110
  • 163
6
votes
2 answers

Does "Save" method belong to the Business Domain Entity?

I am not using any ORM. So I am having a debate whether "Save" method actually belongs to a Business Domain entity or should be abstracted in some service that will be handed over the Business Domain Entity for saving ? e.g. class Employee { …
devanalyst
  • 1,348
  • 4
  • 28
  • 55
5
votes
2 answers

Best way to separate Business from Presentation Logic?

I want to create a game that will work both locally and online. My first thought was to create an interface that would have all the methods that will be needed by the GUI for the business logic and then have a network implementation and a local…
pek
  • 17,847
  • 28
  • 86
  • 99
5
votes
1 answer

Instance methods Vs Static Methods in the business layer

I have a typical web application with the controllers calling the business methods. Should the methods in the business classes be implemented using static methods or instance methods. The business layer classes doe not maintain any state…
user3547774
  • 1,621
  • 3
  • 20
  • 46
5
votes
2 answers

Passing business entities through layers in multi layer architecture

Currently I'm working on a project exploiting multi layer architecture as described in Application Architecture Guide 2.0 with 5 layers(DAL, BLL, Facade, Presentation Layer and Common Layer). Here we have a Business Logic Layer which consists of…
4
votes
3 answers

Circular dependency of Business logic and Data access layer

I am working on MVC project where I am following the layered architecture. After reading and researching on the web, I figured out that having seperate layers is optimal approach. So, my layers are: Presentation layer has: Controllers,…
4
votes
4 answers

Where to catch exceptions

I have a WCF svc separated into a Service Layer, Business Logic Layer and Data Access Layer. When my DAL encounters an exception, should I catch it there or let it bubble back up to the Service Layer? And why? Please disregard any client…
4
votes
3 answers

Design of Business Layer

We are currently revamping our architecture and design of application. We have just completed design of Data Access Layer which is generic in the sense that it works using XML and reflection to persist data. Any ways now we are in the phase of…
1
2
3
13 14