Questions tagged [business-layer]

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.

Source: "Business logic" article on Wikipedia

32 questions
0
votes
1 answer

C# Unique Property Validation in Business Layer

I use FluentValidation and PostSharp in my business layer. My database has an Admin table, and the UserName column in this table is unique. I want to check the uniqueness with an "Aspect". My codes are as follows. AdminValidator public class…
user9325093
0
votes
2 answers

What should be implemented in data layer and what in business layer?

I'm still confusing in what should be coded in data layer and in business layer. because some of method can implemented in both of theme. for example I want the Employs between two date or somethings like this. so should I do that in BL or in…
0
votes
0 answers

Document/action/command permission/access control, rbac, abac

I'm developing a business web application for procurement. I use ASP.NET MVC Core 2.0, EF core 2.0, MSSQL Server. I've been searching for an answer for my question on the Internet for a couple of months but couldn't find one. Lets say i have a…
0
votes
1 answer

Are the relations of this domain model based uml class diagram correct and in which class should required methods be placed?

I´m currently trying to visualize a class diagram for an ordering software, in which an Employee/User is able to create new orders, which have information about the Customer, the Products, the current status and the Employee who works on that…
LukyFoggy
  • 519
  • 8
  • 31
0
votes
1 answer

ASP.NET MVC UnitOfWork and Business Services / Layer

need you help implementing UnitOfWork for my business layer. Want to wrap multiple different business service calls into a single transaction. Let's assume I use Entity Framework as my repository layer and I have an additional business layer for…
Simon
  • 171
  • 2
  • 11
0
votes
1 answer

Simple data manipulation: in Entity Model or Business layer?

I'm working on an asp.net MVC application that implements the traditional Data/ Business/Presentation layered approach. One of my entity models (representing a person) contains address/contact information including a field for "State". My data…
user6479749
0
votes
2 answers

Where to put insert,update, delete methods in asp.net mvc

I want to ask where to put Insert, update delete methods using stored procedure. as i added class library for Dataaccess and business logic class.. and referenced this class library in my mvc 4 project. Now i want to know where to put insert ,…
0
votes
1 answer

How to make these methods parameterized?

I have method in my business layer like this. public Boolean saveParty(Party ptObj) { string query1 = "EXEC insertToParty'" + ptObj.PTRegID + "','" + ptObj.PTName.Replace("'", "''") + "','" + ptObj.PTSymARR + "','" + ptObj.PTSymName…
0
votes
1 answer

is declaring a Business Layer object as public property in a asp.net masterpage a good move?

Im currently working in a ASP.Net C# application and i am using the DAL design pattern with Datasets and Business layers. Normally when i request data in my c# code i create a business layer object: BLLAccount oblAccount = new BLLAccount(); then i…
Jeroen
  • 343
  • 1
  • 2
  • 12
0
votes
1 answer

How to use Simple injector for repository in business layer

I would like that in my MVC layer there will be no Repositories at all. I've generic EFRepository, IRepository and PASContext (which inherits from DbContext) in my DAL project layer . I've installed Simple Injector with quick start under my MVC…
jony89
  • 5,155
  • 3
  • 30
  • 40
0
votes
0 answers

Putting logic in entity class which extends datalayer entity

I have a question regarding Layered architecture. We are drafting a layered architecture and we have decided to have a data layer, Business layer and the front with viewmodels. My question is regarding the Business layer and where to put the…
Arin
  • 632
  • 6
  • 16
0
votes
0 answers

business logic in stored procedure

although i dont have much experience, but in terms of organization and logical thinking i am a big fan of putting bussiness logic just in BLL layer and against putting any business logic in stored procedures. i am starting a new project now and not…
Sisyphus
  • 900
  • 12
  • 32
0
votes
3 answers

ORM Mapping software replacement

We have a large web application that uses multiple databases (all currently MS SQL Server 2008 R2). This application is around 7 years old and was built around the EntitySpaces framework. It's currently using version 2009 of this framework, written…
0
votes
1 answer

Design guidance on Business Layer Paging

WCF/C# N-Tier app. We have implemented Paging in our business Layer using this snippet as a basic guideline. I'm just wondering- in an effort to make the paging functionality testable, should I make the pager a public property of our Manager classes…
Liam
  • 1,267
  • 2
  • 17
  • 30
0
votes
0 answers

Picking up username in business logic layer...?

I have a Sharepoint Visual Web Part frontend to an app I'm writing. That might not be relevant to my problem, because really it seems to me the same problem would apply to any ASP.net application. The app has a business logic class and a data…
Michael Nelson
  • 177
  • 1
  • 3
  • 14