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

Best way to validate IDbcommand parameter

Let's say I have a class public class foo { public string FooId { get; set; } } Now in my Data layer, I am trying to write code which will create one instance of IDataCommand and set FooId as on of the command parameters something like this public…
Subhash Dike
  • 1,836
  • 1
  • 22
  • 37
0
votes
2 answers

Return LINQ populated ViewModel from Business Logic Layer to Controller - MVC

I have a LINQ query that populates a view model of StaffHierarchySearchViewModel. I'm trying to populate StaffHierarchySearchViewModel in my Business Logic Layer (BLL) and return those results to my controller. When I attempt to return the results…
0
votes
1 answer

C# Dynamic generic instance

This is my first question here and i'm not very familliar with the C# terminology, so if i get some terms or definitions mixed up i appologize in advance. I have set up a generic EF data access layer; public class BaseService where TObject…
0
votes
2 answers

ASP.NET complex validation in business / service layer

I am asking this because after long time searching I haven't found a good answer on this yet... Here is what I want: Example: I have a domain model "JobPosting" which a user should be able to change state to published, if it is still a draft. Before…
0
votes
1 answer

n-tier c# applicaiton with BAL and DAL methods with exact same names ( signatures etc.. )

I'm on a project in which I'm failing to see the point of how a previous developer made decisions. same exact method names in DAL and BAL static is EVERYWHERE what should i do with New methods to follow best practices? example of existing…
user6321478
0
votes
1 answer

How to design the persistence layer in a .NET and EF application with concurrency control?

I have read this post and the theory I think that is clear. I have a DAL that only has the methods to add, get, update and delete information in a database. So I guess that I have an application in which I have clients, orders and type of client.…
0
votes
1 answer

In which layer should the domain model go?

We have to code a digital signage app for an University project. The language and frameworks we are using initially are :.Net, C#, entity framework (with plans to use NHibernate), Winforms (with plans to use WPF). We were told to do so in a way…
0
votes
1 answer

Correct tier to check user authorizion and authentication

What's the best place to check for user authorization and authentication. The business tier or the application layer? In my opinion it is the application tier. It cannot let the user make actions for which the user has not got enough…
GionJh
  • 2,742
  • 2
  • 29
  • 68
0
votes
1 answer

Architecture Layers

This is my VS solution: And this is the architecture: I have few questions: 1) Where should i start a transaction and commit? Service layer or Presentation layer ? 2) Where should i acess Data layer ? From Service layer or from Model/Core/Domain…
0
votes
1 answer

Error Handling in Domain or Business Logic Layer (Vb.Net)

I am using 3-Tier layer for my ASP.net project. i have a table in Database “PaymentTypes” where i put check constraint on the column PaymentTypeEN, so the user will not enter the duplicate values in this column. I have code in my Domain Layer…
0
votes
1 answer

Pros and Cons of combining the business layer and the Data Layer in one WCF service

I have an application that uses the 3 layer 2 tier business model, namely Presentation, Business and Data Layers with Application and Service Tiers. We have already decided to use a WCF service on its own tier for all the Data Layer requests (CRUD).…
0
votes
4 answers

Business layer: Looking for a complete reference?

I'm studying business layer and need a complete reference which covers issues about "how to manage dependency between business layer and other layers", "how many ways are there to send data between layers" and most important for me "how to group…
odiseh
  • 25,407
  • 33
  • 108
  • 151
0
votes
1 answer

Inversion of Control and injection of data layer dependencies in the Business Layer

We're designing a layered business application in .net/c# and we are trying to follow the SOLID-principles as much as we see fit. Testability is very important in our project and for this purpose we are using Moq. Using moq we are, among other…
0
votes
1 answer

Data quering from asp.net custom control

Could you tell me if it is a correct way to query data from custom control directly. For example I'm implementing control that query data via business services from database. This let me avoid code duplication like ctrl.DataSource =…
0
votes
1 answer

"Unable to load the specified metadata resource" Error Entity framwork

I get this error: "Unable to load the specified metadata resource" i'm stuck for hours, and can't get the solution. this is the connectionstring from App.config:
Yalin
  • 345
  • 2
  • 9