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

Date Created - should this value be set in the BL or DAL?

Date Created a specific example I'm interested in - but there are other bits of data that fall into the same category: data which you'd want to capture about any vaguely important entity. Where best to do this: business logic (BL) or Data Access…
Adrian K
  • 9,880
  • 3
  • 33
  • 59
2
votes
1 answer

Layered Architecture Question

I am developing an piece of software where I have a few entities such as: public class Workspace { public int ID { get; set; } public string Name { get; set; } public string Description { get; set; } public…
2
votes
2 answers

Business operations/workflow design pattern

Let's say I want to perform an operation that involves updating data in several objects. Here's an example: void SomeOperation() { order.SetStatus(OrderStatus.ReadyForShipping); order.Save(); email =…
2
votes
2 answers

Authentication and authorisation in an n-tiered architecture

I need to be able to tighten my business layer - access to particular data. The UI can make a call to the business layer and receive a userdetail. The UI can then call .Save() on a user and the business layer will call the data access layer to save…
Mike
  • 1,532
  • 3
  • 21
  • 45
2
votes
1 answer

Need advice regarding layered solution, separation of concerns, etc

We have a layered application, or at least is in the process of transitioning to one, broken down as follows: Interface (user-interface or application-interface, ie. webservice, etc.) Business logic Data access To make the rest of this question…
2
votes
6 answers

Where to keep business logics in MVC architecture?

In my company we have recently started developing MVC application. Our task is to write the business logic layer and in future it should be with less maintenance. We have couple of web services to add/update/delete user information. Now we have to…
user1882705
  • 1,081
  • 4
  • 15
  • 43
2
votes
3 answers

Passing Business Objects from a WCF Operation (service Layer to Data Layer)

I am building a WCF service. The Data Contract objects will be the exact same as the Business Objects. Should I create Data Contracts in my WCF service or reference my BO Layer and use those Business Objects in my WCF Operations?
Gadam
  • 2,674
  • 8
  • 37
  • 56
2
votes
3 answers

Can we use Extension Methods for building business rule engines?

I am looking to do something like this public class ProductBiz: BizBase { public List BrokenRules {get;set;} // Some kind of data + biz operation implementation } public static class ProductBizExtensions{ public ProductBiz…
2
votes
1 answer

Can we use DAOs directly in controller instead of business layer objects?

I am not just getting one thing.. I am working on some internal project.. (java/spring/hibernate). Iam using dao layer, presentaion layer.. Is that necessary to use Business layer in my app? The reason i asked because, whatever the methods are…
2
votes
6 answers

Static layers in a java web application

I am building a small website for fun/learning using a fairly standard Web/Service/Data Access layered design. To save me from constantly having to create instances of my service layer/data access layer classes, I have made the methods in them all…
Jonskichov
  • 299
  • 4
  • 15
2
votes
2 answers

Where are micro orm tools positioned in the application architecture

Simple statements like this: "Select x,y,z From Customer" are in the Data Access Layer. If there would be logic in the query like filtering for customers from a certain city I would have to put the filtering in my business layer and do it on the…
Pascal
  • 12,265
  • 25
  • 103
  • 195
2
votes
2 answers

Exception handling with WCF plus Business Logic Layer scenario

My services simply call BusinessLogicLayer methods where entire business logic is put. I want to know what's the best practice for handling exceptions raised by BL?(not only fatal exceptions, also "logic" ApplicationExceptions like…
Lev
  • 3,719
  • 6
  • 41
  • 56
2
votes
1 answer

How to use Entity Framework(4) compiled queries in an n-tier layered application?

I have an n-tier application design problem with Entity Framework 4. Server-side, my application has 3 layers : - one Service layer (WCF) - one Business layer - one DataAccess layer (working with EF4) The Entities are POCO, place in a independent…
1
vote
1 answer

business classes for multilanguage database design

I have posted a question about multilanguage database design here,[]What are best practices for multi-language database design?I like Martin's suggestion,but now I have a question what will be the best way to create business objects? If I will…
Arsen Mkrtchyan
  • 49,896
  • 32
  • 148
  • 184
1
vote
2 answers

Unit test business logic layer

I'm starting to introduce Formal Unit Testing in our company as we are having a project that's becoming bigger and bigger and on this project another guy is going to help me. So I need to be sure that what he does doesn't break up all and…
Marconline
  • 1,108
  • 12
  • 30