Business logic is the abstract thought process behind decision making in human transactions. Translation of business logic into code is one of the major tasks in producing business software.
Questions tagged [business-logic]
626 questions
0
votes
2 answers
WPF MVVM Entity Framework Layering
i have this architecture:
------(WPF APPLICATION)(XAML,ViewModels) (Knows Business Logic But not DAL)
------(Class Library)(Business Logic) (Knows DAL)
------(Class Library)(DAL - ENTITY FRAMEWORK (Model First))(DOES NOT REFERENCE ANYONE)
My Problem…

user938866
- 53
- 1
- 1
- 6
0
votes
1 answer
MVC - Repository vs Business Layer
I am using MVC. I will be using the respository to retrieve necessary records I need through LINQ.
From my understanding, the Data Access is what I would do in the Repository.
For example, I can use LINQ to retreive some records in the…

Nate Pet
- 44,246
- 124
- 269
- 414
0
votes
1 answer
What's a reliable why to create a custom id for an associated item in rails
I have a nested resource like this
resources :projects do
resources :tasks
end
The tasks have a field named number. Whenever I create a task I would like to give it a squential number within the parent project.
This is my model…

server info
- 1,335
- 1
- 14
- 24
0
votes
1 answer
Intelligent behaviour (not computing data) in MVC? iOS
Im currently developing software as an intern at a VoIP company. I'm creating a VoIP Client for iOS using the MVC pattern.
I've a pretty good grasp on MVC, and I'm aware of the fact that this question is asked a million of times, but I'm stumped as…

r712m
- 299
- 3
- 7
0
votes
2 answers
Why should I do UnitTest for my SQL, DAL and BLL if my App will only call BLL methods?
I've put up some tests using VisualStudio integrated test environment,
they simultate what my web application would do by calling BLL methods
(they only ones the UI layer should know and interact with)...
So if their behaviour is correct - I get my…

Peter
- 237
- 1
- 2
- 8
0
votes
2 answers
Move Data Access logic from the business layer to the data access layer
I am doing an asp.net mvc application having a Data Access Layer (DAL).
Having done 90% of my database CRUD code I asked myself wether I need a Business Layer.
But what should I put there? All my CRUD methods in the DAL are not single Selects on one…

Pascal
- 12,265
- 25
- 103
- 195
0
votes
2 answers
Sharing my repository (repository pattern) with other projects(.NET)?
i am trying to tidy up my code, i have a number of projects that have References to my Service Layer i.e the DLL. What this means is that when i distribute a new service layer i have to upload a number of service layers which are generally the…

mark smith
- 20,637
- 47
- 135
- 187
0
votes
1 answer
Where would widescale business rules like processing fees, minimal deposits lay?
I have an eCommerce website and I like my projects very n-Tier/Loosely Coupled/highly extensible.
This project is in MVC 3, a Domain Library, a Service Library, and a Data Access Library (repository pattern).
However, I'm cautious as to the…

Max Alexander
- 5,471
- 6
- 38
- 52
0
votes
1 answer
NHibernate session in BusinessLogic with lazy loading
I am currently developing a middle sized application. The application will have a n-tier structure with different presentation tiers. One part will be a web application but it is likely that there will be other parts dealing with, for instance,…

olif
- 3,221
- 2
- 25
- 23
0
votes
2 answers
putting complex, multi-domain related logic: in Service layer or in model itself?
I'd like to apply Domain Driven Design principles in my project but couldn't determine what I should do with the business logic of dependent models.
For example, suppose this scenario:
I have Person and Car domain models. Each Person is suitable…

Kamyar
- 18,639
- 9
- 97
- 171
-1
votes
1 answer
Philosopher issue about business rules
There is one men that have an opinion that business rules might be at only one place in the application, so for our team and project it meens that in our relational database there is no foreign keys and constraints. Business rules in this project…

overwriter
- 339
- 3
- 14
-1
votes
6 answers
How to find appropriate person for API feature review?
We are developing a product which provides an API interface, so other developers can use some functionality of main product.
This is already implemented and documented.
But I'm not sure that this is very useful, and documentation is very clear for…

BinaryButterfly
- 18,137
- 13
- 50
- 91
-1
votes
3 answers
Reviving an obsolete Fox Pro application
I am working with a client to revive his old software which was developed around 14 years ago using Foxpro2.6.
My problem is that client just have the source code (in the form of .prg files)and database files with him but there is neither any…

Sudh
- 1,265
- 2
- 19
- 30
-1
votes
1 answer
How can i make my business logic only execute once, so it alters the object only once
I have the following business logic:
public decimal Price
{
get {
if (OrderSize == Size.Small)
{
_price = decimal.Multiply(_price, (decimal)0.8);
}
…

spalkie walkie
- 21
- 4
-1
votes
1 answer
Is it legitimate to have business logic inside a finally block?
I have a method entangled with control structures. It has many ways to exit. Before leaving the method I need to do some final processing. Instead of repeating the same logic before each exit or refactoring that logic in a method and calling it…

Carlos Nunes
- 1,929
- 2
- 16
- 20