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
1
vote
2 answers

Creating a repeater using BLL

I'm trying to create a repeater control bound with data of my database. This should be use with a BLL. But I don't know what I have to do. I hope someone can help me with this.. The code I used in the page.aspx.vb is: Public Function showRepeater() …
Bjorn Seigers
  • 159
  • 4
  • 12
1
vote
2 answers

Design Patterns: Need help understand to this concept and how it applies to my project

The past few days I have done a lot of research using the DAL/BLL/UI approach without a very clear understanding of how it will apply to my project. In the past, I have left out the BLL connecting my UI directly to the Data Access Layer (LINQtoSQL…
Dan
  • 79
  • 1
  • 2
  • 13
1
vote
3 answers

Should I try to put asp control events into the BLL?

I have recently been learning about Data Access Layers, Business Logic Layers and Presentation Layers, but I still have a few things that aren't quite clear. I can use the DAL and BLL with the Presentation Layer to get or set information in a…
Lucas
  • 10,476
  • 7
  • 39
  • 40
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

Use BLL functions without reference the DAL in my API

I have 3 project (C#) API, BLL and DAL. The DAL reference the DAL and the API reference the BLL. In my API I need to use all the CRUD functions but I can't use the function from my BLL because VS said that "The type "blabla" is defined in a…
Atloka
  • 185
  • 3
  • 12
1
vote
1 answer

RIA Services and the BLL

I'm currently looking at RIA services, in order to speed development of Silverlight enterprise applications. It's clever and powerful, but it seems to me that you are invariably going to collapse your business logic into the presentation layer. Is…
Craig Schwarze
  • 11,367
  • 15
  • 60
  • 80
1
vote
2 answers

What option other than a BLL instantiating a DAL allows for unit testing in an n-tier solution without exposing DAL to the UI or BLL to DAL?

I have a layered solution as follows: UI (User Interface) BLL (Business Logic Layer) DAL (Data Access Layer) SharedEntities (A VS Project with entity POCOs only) I’d like for the BLL to have a service called GetProductList() which is implemented…
Robertcode
  • 911
  • 1
  • 13
  • 26
1
vote
1 answer

Repository pattern: DAL or BLL

I'm trying to implement a business logic layer with a few use case for saving data of Booking of a Vehicle. I'm a bit confused as to where the Repository pattern should be implemented. Should I use it in BLL or DAL? It sounds very basic but I'm kind…
A.K
  • 505
  • 1
  • 12
  • 30
1
vote
1 answer

How to / Should one - set EntityState in UI/BL Layer?

I have a segregation of layers as follows: UI - Web App => References BLL And Entities BLL - Business Logic (Validations) => References DAL And Entities Entities - Data Carries (POCO) => No…
Pavitar
  • 4,282
  • 10
  • 50
  • 82
1
vote
1 answer

C# Best practices - Set readonly model property value from BLL

Consider the below: public class Project.Model.ModelName : BaseClass { private int _id; private string _name; public int ID { get { return _id; } set { _id = value; } } public string Name { get {…
Stephen
  • 47
  • 1
  • 5
1
vote
1 answer

Is it reasonable to wrap a domain's BLL into it's own Class Library, and how would I set it up?

I have heard of putting your DAL into a Class Library loads of times. It makes sense, and I want to do it so that I can reduce code duplication across applications. I have decided to use Entity Framework to build that DAL. From what I understand…
JHixson
  • 1,512
  • 2
  • 14
  • 29
1
vote
1 answer

the best way or place to describe website constant or setting

WebsiteSetting { public string Name Age {get; set;} public string Language {get;set} public int ActiveSeason {get;set} ...... ...... } I have a class like this.when web page initialized,I start this class for every loaded pages…
sakir
  • 3,391
  • 8
  • 34
  • 50
1
vote
2 answers

Cannot implicitly convert type 'void' to 'string'

I've tried for a while now and I really dont get it. I recive error "Cannot implicitly convert type 'void' to 'string'" I have tried multiple variants of string, int, nothing, void, public, static and nope I really dont get it right. I want to get…
Slint
  • 355
  • 1
  • 4
  • 17
1
vote
1 answer

If I Use a BLL should I still access the DAL?

I want to create n-Tier architecture with a repository pattern. I'm wondering does it make sense to just duplicate all my calls up through the BLL layer and then access data only calls via the BLL? Or can I access some things directly through the…
Exitos
  • 29,230
  • 38
  • 123
  • 178
0
votes
1 answer

Adding custom business logic to ASP.NET WebSite with entity DAL (Data Access Layer)

I have an ASP.NET web site that has a entities version 4.0 DAL. I have several pages that have texts boxes where you can enter data, and gridview to see and edit that data. I am using LINQ to write the insert logic in the code behind file for one of…
JBausmer
  • 914
  • 9
  • 11