Questions tagged [bll]

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. BLL objects are typically partitioned into two categories: business process objects (those which reflect business activities, or behaviors) and business entities (those which reflect real world business objects). Business process objects are typically implemented as controllers, i.e. they contain no data elements and only expose behaviors and activities which represent business processes. Business entities typically correspond to entities in a domain model rather than a database model.

96 questions
2
votes
3 answers

n-layered architecture - BLL, DAL and interfaces. What is best practice?

I have a question regarding n-layer architecture. I thought long and hard before asking this question as there's a lot of similar questions here already... however, after literally a day and a half looking at it and reading these other answers I'm…
Matt B
  • 8,315
  • 2
  • 44
  • 65
2
votes
2 answers

Decoupling into DAL and BLL - my concerns

In many posts concerning this topic I come across very simple examples that do not answer my question. Let's say a have a document table and user table. In DAL written in ADO.NET i have a method to retries all documents for some criteria. Now I the…
novice_man
  • 21
  • 1
2
votes
4 answers

Is it worth it to write a bunch of 2 liner functions in BLL object just to re-route to DAL?

It seems pretty silly to me. What don't I get?
Haoest
  • 13,610
  • 29
  • 89
  • 105
2
votes
1 answer

Most Commonly used extensions and helper functions in ASP.NET C#

I am an ASP.NET C# web developer. The architecture followed is 3 layer The layers used are 1. UI 2. BLL (Sometimes Communicating with BLL is done using WebServices) 3. DAL Pretty basic stuff. What I would really like to have is a BLL.Common class…
naveen
  • 53,448
  • 46
  • 161
  • 251
2
votes
5 answers

Calculations In Business Layer or Controllers For View Specific Info

I am building an ASP.Net MVC web application using an n-tier approach. My structure looks like this: Business Objects - Model Data Access Layer - DAL Business Logic Layer - BLL Mapping Layer ViewModels Controllers Views I usually put calculations…
Louise Eggleton
  • 969
  • 2
  • 15
  • 27
2
votes
1 answer

Calculations In Data Access Layer

I am in the process of converting a large Classic ASP web application to ASP.Net MVC using an n-tier approach. In my DAL I use ADO.Net to query the database and transform the queries into objects. I also have a BLL for things like calculations and…
2
votes
3 answers

Should I think of Entities in EF as Domain Models or DTO's?

I am new to Entity Framework (Code first, if it matters). As I have been using it, I have been building my POCO classes, thinking of them as final domain models. With things like Lazy Loading, I like the Idea that I can use these entities directly…
JHixson
  • 1,512
  • 2
  • 14
  • 29
2
votes
2 answers

the bll,dal and interfaces implementation

My question is related to the bll,dal,interfaces. My project's constructure more or less like this. BLL, DAL, OBJ and 3 layer architecture (As I dont repeat question and codes again,I give the link here) My question is why should I use…
sakir
  • 3,391
  • 8
  • 34
  • 50
2
votes
5 answers

Is it better to divide a software into multiple modules with each module having its own database

I am working on a health care application mainly developed in asp.net with Oracle 11g as backend. In its current state the application is divided into 3 layers i-e UI, BLL and DAL. Since the BLL and DAL are class library projects they are deployed…
ZedBee
  • 2,320
  • 7
  • 39
  • 61
2
votes
2 answers

How to throw an exception in BLL when no data found in DAL

I am trying to throw an exception in my BLL when there is no corresponding carID for the license plate number I've entered in a text box. My DAL looks like this: Public Class DALCar Private dc As New cars_modelDataContext Public Function…
Wout
  • 21
  • 1
1
vote
1 answer

JSON/XML output in GUI, BLL or DTO?

I'm using content-negotiation, so depending on the header of the request I provide JSON/XML output. Now I was wondering what the best location is for providing this functionality. Info: BLL= business logic layer DTO= data transfer object DAL= data…
Terence
  • 10,533
  • 1
  • 14
  • 20
1
vote
1 answer

ASP.NET Business Layer Code Persists but I'm not sure where it's stored?

I'm royally confused about ASP.NET now. I believed that everytime you retrieved a webpage business model referred to by that page would be created and that after the display had been sent to the user it would all be torn back down again. A colleague…
Ben
  • 15
  • 2
1
vote
2 answers

Best Practice (Keeping it simple) to wrap a method returning List of Products from DAL to BLL

Below is a method from from my console application calling a DAL method. Whats the best way to wrap this in a BLL method so it can be called directly from the presentation? I have worked on projects in the past where we called everything from the…
midnightCoder
  • 75
  • 1
  • 11
1
vote
2 answers

How should i implement my Business Logic Layer?

Let's say I have an application that is 80% complex business logic and 20% CRUD, or vice versa. In the past I have used some kind of command pattern and had classes like ComplexFooCMD or EvenMoreComplexBarCMD but always ended up with a bunch of…
RRoman
  • 741
  • 9
  • 19
1
vote
4 answers

Creating Global Variable For Web Application - ASP.NET

i'm building my web application to connect with db. so far i have managed to deal with it, (although i didn't build BLL & DAL). i have a table which has column "id". i know there is a way to declare it in the SQL Server to be incremented…
RonenIL
  • 273
  • 3
  • 8
  • 17