Questions tagged [business-layer]

A Business Logic Layer (BLL) is a typical software engineering artifact within a Multitier architecture

A Business Logic Layer (BLL) is a typical software engineering artifact within a Multitier architecture. It separates the business logic from other tiers, such as the data access layer or service layer.

Source: "Business logic" article on Wikipedia

32 questions
8
votes
4 answers

Use Server.MapPath in Business Layer

My business layer creates files and needs to save them in the App_Data folder of my asp.net mvc 4 web frontend. I could use Server.MapPath in the business layer to get the physical path of the App_Data folder. But i want to avoid a reference to…
levis
  • 125
  • 1
  • 1
  • 6
6
votes
4 answers

return Queryable or List in a Repository

Currently I'm building an windows application using sqlite. In the data base there is a table say User, and in my code there is a Repository and a UserManager. I think it's a very common design. In the repository there is a List…
Cheng Chen
  • 42,509
  • 16
  • 113
  • 174
4
votes
2 answers

SignalR and ASP.NET MVC: Integration in business layer

our application is divided in several layers, the most important are: Data Layer Business Layer Presentation Layer (ASP.NET MVC 5) The Business Layer must live broadcast some information to the connected clients via SignalR (Presentation Layer).…
levis
  • 125
  • 1
  • 1
  • 6
4
votes
2 answers

Common structures between business layer (BLL) data access layer (DAL) and UI?

I want all my layers BLL ,DAL and UI to share classes (concrete or interfaces). Is this really a bad practice? I prefer not to return datatables from my DAL methods but instead to return objects that BLL can use directly. I want to have a separate…
e4rthdog
  • 5,103
  • 4
  • 40
  • 89
4
votes
3 answers

Pulling out business logic from the data access layer

We are writing some support applications (rather small) to our ERP system. Thus until now I am feeling that I am using the Data Access Layer for 2 roles: the business layer AND the data access one. I am having trouble deciding what I have to move to…
e4rthdog
  • 5,103
  • 4
  • 40
  • 89
1
vote
1 answer

Storing object in memory for using it in Business Layer

I am working on a asp.net app with 3 layer architecture. (DAL, BL, PL) And I am using Entity Framework for working with the data. But I have this data file with about 80 columns and 110000 rows I don't want to save in the database. I deserialize it…
Myoxidae
  • 27
  • 7
1
vote
0 answers

How to transform multiple "old" C# business objects layer to be exposed in WCF

I know how to create [DataContract] to expose my business objects layer, it's a one by one process and, as I have many hundreds objects to process, my question is simple: is there's a "proper way" to expose already created business layer to WCF? I…
1
vote
2 answers

Should An Application Service Be Injected Into A Domain Service

I am working on a WinForms application using Entity Framework 6 with the following layers: Presentation Application Domain Infrastructure When a user clicks the save button from the UI, it calls an application service in the Application layer and…
1
vote
1 answer

Should I begin adding / converting a physical business layer to an existing project?

Just recently, our application expanded to support 4 different UIs. We have business logic that is integrated into our data layer. We do not have a physical business layer that separates our UI from our data layer. Often times in the UI, the…
drizzie
  • 3,351
  • 2
  • 27
  • 32
1
vote
1 answer

Remember state of Object in sub project

I am working on a website with 2 sub projects. The sub projects are referenced like this: => my website has a reference to project Business Layer => project Business Layer has a reference to project Data Layer Visitors are required to log in.…
0
votes
0 answers

Manage GUI and logic interaction in Python

I developed a big python project, that does specific tasks. Later on I decided to add a graphical user interface for it. ├── GUI | └── myScript Let's say the GUI has a "Start" button. When clicking on it, we start the business logic that is located…
Gaston
  • 185
  • 8
0
votes
1 answer

Interaction within Business Logic Layer in 3-layered Architecture?

We follow 3-tier architecture, where we have presentation layer, business logic layer (Managers) and Data Access Layer. There are few processes that involves multiple entities which are controlled by different BLL classes (we refer to BLL classes as…
0
votes
0 answers

Software Architecture: Does Service Layer and Business Layer has their own Model

I am confused with designing application between Business and Service Layer. What I get so far through researching from internet? A service layer normally a domain specific code which serve for the presentation. A business layer normally a domain…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
0
votes
0 answers

ASP.NET MVC Core - ViewModel in Business Layer and implement data annotation

I am building an application in which I have Models, ViewModels added in the business layer, and Controller and views in the Web application. Now I want to apply data annotation through the view model which is located in the Business layer. My…
0
votes
0 answers

How to direct exceptions from Business layer to UI layer

In my user interface (UI) layer (WinForms/WPF), I am using a method from the business layer that accepts some input and creates an object that will be displayed in the UI. The code in the business layer may throw a general or specific exception,…
Vahid
  • 5,144
  • 13
  • 70
  • 146
1
2 3