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
4
votes
4 answers

Separation of business logic

When I was optimizing my architecture of our applications in our website, I came to a problem that I don't know the best solution for. Now at the moment we have a small dll based on this structure: Database <-> DAL <-> BLL the Dal uses Business…
bruno
  • 1,830
  • 2
  • 22
  • 36
4
votes
6 answers

Business Logic Layer

I am programming data driven applications using asp.net with telerik controls (v2009 q2). I have a class named BLL which contains (almost only) static classes that return different objects taking some id as parameter. The generally return group of…
emre
  • 41
  • 2
4
votes
3 answers

Why is it that Rails applications aren't split up and business logic moved into gems?

In ASP.NET MVC applications and Java web applications, there's a common practice of keeping business logic in a separate package/dll and treating things like the database and delivery mechanisms (web application, web service, native mobile or…
enamrik
  • 2,292
  • 2
  • 27
  • 42
4
votes
1 answer

EF4 complex Select(): Return IEnumerable or IEnumerable from Business Tier?

I've started a new job in which we're migrating a reasonably large VB.NET 2.0 app (with datasets) to C# 4.5 (with EF4.) From our business layer, our "Search" functions are now returning IEnumerables of the classes defined in our EDMX. So something…
4
votes
3 answers

Separating Business Rules from Business Processes

how do I externalize the business rules from the business processes so that I can add rules without touching the business process logic? For example, I have two business processes, say "Add Product" and "Update Product", there are a few common rules…
Ajay
  • 746
  • 1
  • 10
  • 25
4
votes
4 answers

Should Business Logic Layer access the DB/Data Access Layer?

I'm a bit confused about the relationship a BLL and DAL has. Should the BLL encapsulate the DAL via dependancy injection? Or should the BLL only act on domain objects and the DAL save/update seperately? For example imagine (in a typical MVC app) a…
David
  • 1,731
  • 24
  • 37
4
votes
7 answers

How do you implement a business logic layer when using entity framework as data access layer?

Say i have 3 layers layer 1: WPF Project (contains: xaml, viewmodels, mvvm framework) layer 2: business logic layer (contains: plain c# classes) layer 3: entity framework (contains: repository/data access classes) when you dont want to expose your…
user938866
  • 53
  • 1
  • 1
  • 6
3
votes
1 answer

Application development in Go

I'm writing a web application in Go. So far I've written all base libraries I'm going to need for now and that worked out just perfect. The package structure is really handy in that aspect. Now I'm at the point where I need to start writing the…
thwd
  • 23,956
  • 8
  • 74
  • 108
3
votes
1 answer

CakePHP business logic layer

CakePHP doesn't seem to ever mention separating the business logic and data access layers of an app. This is my first MVC app and my "fat models" are turning out to be very fat because they contain all kinds of business logic whose only real thing…
Brian
  • 2,107
  • 6
  • 22
  • 40
3
votes
2 answers

Web API Business Layer Architecture and its responsibilities

I have following classes in my web api business layer, i was wondering if GatewayService class should be in Business layer or should i put that in separate project called BusinessService? because its not being directly called in controller class and…
3
votes
2 answers

Business Layer structure, how do you build yours?

I am a big fan of NTiers for my development choices, of course it doesnt fit every scenario. I am currently working on a new project and I am trying to have a play with the way I normally work, and trying to see if I can clean it up. As I have been…
JamesStuddart
  • 2,581
  • 3
  • 27
  • 45
3
votes
2 answers

How to use two data stores for same interface in repository pattern?

I have clear understanding of what repository pattern is and its importance from TDD's standpoint. I also understand that how easy it can be to switch underlying data store for the application because Repository acts as a window to data access…
3
votes
1 answer

Domain Logic in Service Layer - how best to reference it as well as expose it

I am designing an enterprise solution which consists of modularized products within a product range using Entity Framework code first to define the domain model and provide the data access. e.g.…
Dan Cook
  • 1,935
  • 7
  • 26
  • 50
3
votes
2 answers

N-Tier Service Layer Validation Show Business Logic Error in Presentation Layer

I am converting from the old ways of ASP.NET Web Forms to ASP.NET MVC. I have a project that I am working on that has about 40-50 tables in the database. I have decided to use Entity Framework as my data access layer. I have also decided to put a…
3
votes
1 answer

How to implement good practise of Business Logic Layer in Real Life asp.net

I usually create dataset as DAL, and BLL INSIDE the original project. After I learned Entity Framework, I know that business logic layer are commonly created in separated project(class library). However, ASP.NET site has no corresponding…
Ivan Li
  • 1,850
  • 4
  • 19
  • 23
1 2
3
13 14