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

How do I design entities in business layer of a multi-tenant application for an extendable database structure?

For example, I want that a product may have multi-versions like from different tenants, one version product has 3 fields and other has 6 fields. Then how will I represent this entity in business layer to apply logic of my business on, not in…
1
vote
2 answers

Interface implimenttaion of the class issue

Here is the my simple senario. I have a class(BLL class) which implemented an interface. What I wanna do is, inside the presantation layer, i want users reach only the interface and interacting the class with this interface, not the class function…
sakir
  • 3,391
  • 8
  • 34
  • 50
1
vote
1 answer

Strategy for Sharing Business and Data Access Entities

I'm designing a layered application where 90% of the business and data access entities have the same properties. Basically it doesn't make sense to create one set of classes for each layer (and map) with the same properties for the sake of…
rro
  • 619
  • 5
  • 22
1
vote
2 answers

C# anonymous type foreach looping

I need to loop through the properties of a custom object type that I'm getting back from the database and only show the columns that contain data. This means I cannot simply bind the list of objects to the datagrid. I don't want to loop through each…
Bob
  • 33
  • 1
  • 6
1
vote
1 answer

Creating Business Class for a DataRow with unknown number of columns

I have a stored procedure which returns pivoted columns along with columns from tables. I get the DataTable after executing the stored procedure. Now i want to convert this DataTable to a List<'MyClass'>. The DataTable has some known columns (…
hammadmirza
  • 156
  • 6
1
vote
1 answer

Linq to Sql- Can I build an generic Action of Update?

For each of my tables there is the Key value so my question is how can I get the Key property? I want to search that object I got in the paramater and update the table through this updated object. how do I find my object from the table? public…
Stav Alfi
  • 13,139
  • 23
  • 99
  • 171
1
vote
1 answer

How to retrieve data from the datastore on Android device, using Google App Engine with Cloud Endpoints?

I am building an Android Application using Google App Engine with Cloud Endpoints. I carefully followed this tutorial (https://developers.google.com/eclipse/docs/endpoints-addentities), thus I managed to successfully perform insert operation in the…
1
vote
1 answer

The N-layers paradigm - is this concept wrong?

I just saw the lecture: Breaking apart conceptions He keeps saying that the 3 layers paradigm started because of the problem with connection pooling. And NOT because of architectural considerations. Seems like a mind blowing theory. Can…
1
vote
2 answers

Linq To Sql - Making a dynamic search for the Application layer without exposing DAL layer as DLL

Linq to SQL, C#. I have 3 layers: DAL,BL,Application. I want to build functions of search in the BL for each table so those functions get as a parameter 'where' expresstion from the Application layer. The advantage in this approach is one function…
1
vote
1 answer

Multiple class libraries in business layer, or one?

My ASP.NET application uses only 1 SQL Server 2000 database and no more than 50 tables in it. And I copied an instance of the database to run on my develop PC, so I need to switch the connections between dev and release. The problem is, I had…
Brent Jiang
  • 377
  • 1
  • 2
  • 11
1
vote
1 answer

Substitute Models from MVC with existing Data and/or Business Layer?

The thing is that i would like to transfer some of our small WinForms applications to ASP.NET I have the Data Access Layer dlls and the Business Layer Dlls. Is it a good practice to substitute the models with these dlls and use Controllers and Views…
e4rthdog
  • 5,103
  • 4
  • 40
  • 89
1
vote
1 answer

N-Layer Architecture in C#

I'm trying to implement N-layer architecture to my project first time. I created BLL, DAL and GUI Here is in GUI XmlSettingsBLL xmlSettings = new XmlSettingsBLL(); var newDict = new NewDictionary() { StrDataSourceType = "AccessMdb",//…
ertan2002
  • 1,458
  • 1
  • 32
  • 68
1
vote
2 answers

Generic DAL / BLL Classes

I'm currently building the Data Access Layer and Business Logic Layer classes for our new application, and I have a question (obviously). First, here are some details that may help: Using Entity Framework 5 for Model classes and data access Each…
zday
  • 133
  • 2
  • 4
1
vote
1 answer

In MVP can the model be shared by the BLL

I read the following really good and informative article on MVP: MVP Building from scratch. Referring to the below architecture diagram (taken from the post): i wanted to know if the model classes defined in the presentation layer will be shared in…
nikhil pinto
  • 331
  • 1
  • 4
  • 15
1
vote
5 answers

Windows Form Controls and LINQ; What should I return?

When working with Windows Form controls and LINQ is there a "Best Option" for how your Buisiness Layer returns the Data? Right now I am returning DataTables so that I can then set the DataSource to the returned DataTable. Is there a better option? …
Refracted Paladin
  • 12,096
  • 33
  • 123
  • 233