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
1
vote
1 answer

common services in layered architecture

I read in many books that in a layered architecture a layer should only use the services provided by the layers below it. The commonly used layers are in an enterprise application are: Presentation Business Persistence This means services at…
1
vote
3 answers

Simple Elegant pattern to separate Data Access, Business logic and presentation

I need a simple pattern to do the above. Few things to note: 1) I have a class that I am obliged to use that does the actual data retrieving and it return DataTable 2) I am not concerned with the generic interfaces that support all possible…
sarsnake
  • 26,667
  • 58
  • 180
  • 286
1
vote
3 answers

Separating business logic dependent on web references out of presentation layer

I have a web app with a presentation layer and a business layer as individual projects. One being a web application and the other being a class library. I have added a web reference to the web application to use a web-service. I am having no trouble…
spaghetticowboy
  • 708
  • 1
  • 8
  • 22
1
vote
3 answers

When Creating/Updating an entity, Should I Pass object to business logic or object values?

When working with an entity, which of the following is recommended? (The following code is in UI Layer. UserManager is in Business Layer) 1- protected void btnReturn_Click(object sender, EventArgs e) { var user = new User(); user.Name =…
1
vote
1 answer

How to separate business logic layer using ModelState wrapper class in .net core mvc

I am developing Web Applications using ASP.Net MVC 5 (.net framework), now trying develop my next Project using .NET Core 3.1 with Entity framework Core (with Code first approach). I am trying separate business logic in a separate Wrapper class…
1
vote
1 answer

business layer with multiple objects with all properties filled from DB or one object with only a subset filled

I am building a middle size system and I am facing a problem that probably some of you have faced before. In my business layer I return business objects with a subset of properties that are important for that business method, I am worried because I…
1
vote
2 answers

Design considerations for realtime OPC system

We are in the process of redesigning a disjointed realtime OPC system which has proven to be cumbersome. Our technology stack is C#, .NET 4 and SQL Server 2008 R2, hosted on 32 bit Windows Server 2003. Physical archtecture currently dictates that…
staterium
  • 1,980
  • 2
  • 20
  • 32
1
vote
1 answer

Entity Framework/Linq to sql model to business model

I'm coming from a stored procedure and creating the data access layer manually approach. I am trying to understand where I should fit Linq To SQL or entity frameworks into my normal planning. I normally seperate out the business layer from the DAL…
Aur
  • 191
  • 9
1
vote
2 answers

Business Layer errors and Service Layer handling - Best way?

We're building a large web app that has numerous layers. In order to communicate to the business layer we're using a service layer that the web layer calls when data is needed. Unfortunately, it seems that if exceptions are thrown in the business…
DavidAndroidDev
  • 2,371
  • 3
  • 25
  • 41
1
vote
1 answer

Inheriting from entity classes and extending the class

I used Entity Framework 4.0 for creating my Data Access Layer. Then I found that my Business Logic Layer has the same objects as DAL but with some extensions (i.e, more properties, some functions, and data validation at setters...). I planned to…
Xaqron
  • 29,931
  • 42
  • 140
  • 205
1
vote
2 answers

Use of Business Layer in 3-tier architecture

I am implementing 3-tier architecture. I just wanted to know the role of business layer in 3-tier architecture. I am developing application in using entity framework. So I have entity object which is accessiable in PL,BL & DL. My question is…
user583966
  • 11
  • 3
1
vote
2 answers

How to handle on-demand data fetching for Domain Models

Given the following scenario... I am concerned about two things... 1) Is it okay to inject a provider into a business model object? - like I did with the Folder implementation because I want to load Sub-folders on demand. 2) Since I am injecting the…
user6465254
1
vote
1 answer

Strategies for the caller to decide data connection

Consider an existing data access and business logic layer that is used by multiple different applications and that, until now, only needed a single data connection for the lifetime of any given application that consumed it - so the connection info…
Mark Bostleman
  • 2,185
  • 3
  • 25
  • 32
1
vote
3 answers

Entity Framework with Repository Pattern, inserting data to tables with many-to-many relationship

I am trying to build a three tier architecture with BLL, DAL, and UI. I am working on a small Apartment Management System project (which includes the information about resident students, their rooms and the apartment of the rooms they stay). Since I…
1
vote
2 answers

Is it necessary to have DAL and BLL in Go Web App?

In many Go programming books, the author usually put data access logic within the same function that handles business logic. While I understand that this may be merely for teaching purposes, but I wonder if people actually separate BLL from DAL in…
fallaway
  • 423
  • 2
  • 10