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

Can business layer of one module directly access repository of another module?

I am having a 3 layer architecture. 1) C# MVC Application - UI layer 2) Business Layer - consisting of service interfaces and its implementation and repository interfaces 3) Data Access Layer - consisting of Repository interface implementation The…
devanalyst
  • 1,348
  • 4
  • 28
  • 55
1
vote
1 answer

Should a BLL be stateless?

I'm toying with building a BLL for my application. From what I've seen / read, it seems the BLL should be stateless. Doesn't this mean all BLL methods could be static? Or I'd at least only ever need one instance of each BLL class? Which seems…
Mark
  • 1,296
  • 13
  • 28
1
vote
1 answer

How can be controled / coordinated algorithm

Below picture is a simple part of complex algorithm. I try to prepare some classes in accordance with algorithm. abstract class Person { public string HasXRecords { get; set; } public int PersonAnotherFeature { get; set; } public List
1
vote
1 answer

Opinion on business logic layer design for window and web based application

I need some opinions on choosing which signatures for my web based business layer function: function void CreateUser(Company UserCompany, string name...) or function void CreateUser(int CompanyID, string name...) If this is a window based I would…
Dreteh
  • 387
  • 2
  • 4
  • 11
1
vote
2 answers

How can I implement my existing Business Layer to a SilverLight 4.0 Application?

Lets assume that I have my own business layer containing my business objects and my business services. And I have decided to create a "SilverLight Business Application" (with SL v 4.0) and I want to use my already used Business Layer from the SL…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
1
vote
2 answers

In what scenarios would i want to create custom business objects from Linq to Sql results?

A simple linq to SQL query Might return a product object. Obiously I could pass this object to my business layer, then read and update the data, directly against that object. I've seen a bunch of implementations where following the execution of the…
Emilio
  • 1,951
  • 3
  • 18
  • 24
1
vote
1 answer

No record - place to throw exception

I have Business logic layer and DB layer (Entity framework). For example, I receive some data from DB. DB layer: public SmartphonePhotographerResponseManage ResponseManage(int RequestID) { SmartphonePhotographerResponseManage response = (from i…
Oleg Sh
  • 8,496
  • 17
  • 89
  • 159
1
vote
1 answer

Make the method parameterized

I have designed my application in a layered approach. I have a BusinessOP layer for each interface and a common data access layer. In my Data access layer I have Data Reader method like this.| public SqlDataReader executeQuerys(string query01) …
1
vote
2 answers

MVC How to add a business layer properly

I'm (noob) re-factoring some teaching code in MVC. Using different web articles as a guide, I am placing business logic such as "add record" into a separate project. To avoid circular references, should I also move the model and other components to…
1
vote
2 answers

Confusion about decoupling, separating of concerns, the framework and my business model

i got a little bit confused about decoupling, separating of concerns, the framework (Symfony2) and my business model. Let me explain :) In modern web based projects we're supposed to have a thin controller. This seems to be best practice nowadays.…
1
vote
1 answer

ASP.NET: returning list of objects from Web Service method

I wonder how to return a list of objects instead of a list of strings? Returning a list of strings works, but when I replace everything by an object it fails.. Here's my Web Service [WebMethod] public List SearchProduct(string name) { …
1
vote
1 answer

Can ASP.NET Dynamic Data be made to work with custom business objects rather than data objects?

I'm working on a project in which we have a database, data layer (entity framework), business layer and web/UI layer. I want to use ASP.NET Dynamic Data for the web layer, but don't want it to access the data layer or database, as I want it to be…
Jonathan
  • 32,202
  • 38
  • 137
  • 208
1
vote
2 answers

Is it OK to bypass business-tier in a mostly CRUD application?

I'm working on an application where the vast majority of functionality is a one-to-one mapping between database tables and views. It's by far and away a pure CRUD application. However, there are a FEW cases where there are some business rules…
jmrah
  • 5,715
  • 3
  • 30
  • 37
1
vote
1 answer

From a business logic point of view, is correct to use unique indexes in business columns?

My question is not formuled from a database point of view, but advantages from a business logic point of view. Using as example table CreditCard and column CreditCardNumber. I can assign a unique index to CreditCardNumber, because there's no…
1
vote
1 answer

Getting data from xml and inserting into existing table using stored procedure and c#

public int UpdatePlantContacts(int PlantID, List PlantContacts) { int i = 0; DataTable dt = new DataTable("PlantAreaContact"); dt.Columns.Add("PlantAreaID",System.Type.GetType("System.Int")); …