Questions tagged [business-logic]

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.

626 questions
6
votes
7 answers

Business Logic in PHP or MySQL?

On a site with a reasonable amount of traffic , would it matter if the application/business logic is written as stored procedures ,triggers and views , instead of inside the PHP code itself? What would be the best way to go keeping scalability in…
Sabeen Malik
  • 10,816
  • 4
  • 33
  • 50
6
votes
2 answers

N-layered database application without using an ORM, how does the UI specify what it needs of data to display?

I'm looking for pointers and information here, I'll make this CW since I suspect it has no single one correct answer. This is for C#, hence I'll make some references to Linq below. I also apologize for the long post. Let me summarize the question…
Lasse V. Karlsen
  • 380,855
  • 102
  • 628
  • 825
5
votes
5 answers

How to version dynamic business Objects/Data?

We are developing a large applications which are related to business. You can find these applications similar to some ERP, CRM, etc. Now we have a requirement that we need all the data which are entered by the user to be versioned. For example: at…
linuxeasy
  • 6,269
  • 7
  • 33
  • 40
5
votes
2 answers

business methods in playframework contolles

Could somebody explain is it possible to have potected, pivate methods in playfamewok's contolles except: public static void method-action-name() {} For example if I would have method like this: protected static int doSomeWork() {} and this…
ses
  • 13,174
  • 31
  • 123
  • 226
5
votes
2 answers

What's the best way to localize non Data Annotation Errors with ASP.NET MVC 3?

With Data Annotations it's now easy to localize error messages using Resource.resx files like this for example: public class Student { . . . [Required(ErrorMessageResourceName ="Required", ErrorMessageResourceType =…
Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480
5
votes
8 answers

where to put the Business Logic, AppLayer o DataLayer?

After reading this post (business logic database or application layer) I still don't have the sufficient reasons to fight the "business logic in database" topic. In my current work, there is a lot of db transaction (actually) and all that crappy…
Garis M Suero
  • 7,974
  • 7
  • 45
  • 68
5
votes
2 answers

Visualise a C# method logic

I have a complex C# method which contains a set of if statements which determine access rights for a user. I am looking for a way to visualise this logic into, say, a workflow diagram or something similar. This is using .NET 3.5 and Visual Studio…
Russell
  • 17,481
  • 23
  • 81
  • 125
5
votes
4 answers

When does logic belong in the Business Object/Entity, and when does it belong in a Service?

In trying to understand Domain Driven Design I keep returning to a question that I can't seem to definitively answer. How do you determine what logic belongs to a Domain entity, and what logic belongs to a Domain Service? Example: We have an Order…
Casey Wilkins
  • 2,555
  • 2
  • 23
  • 31
5
votes
2 answers

Practical user validation (sensitivity and specificity)?

When I was first learning how to use regular expressions we were taught how to parse things like phone numbers (obviously always 5 digits, an optional space and a further 6 digits), email addresses (obviously always alphanumerics, then a single '@',…
Cactus
  • 75
  • 3
5
votes
4 answers

application logic vs business logic

While I am trying to discerned the difference between the application logic and business logic I have found set of articles but unfortunately there is a contradiction between them. Here they say that they are the same but the answer here is totally…
Mo Haidar
  • 3,748
  • 6
  • 37
  • 76
5
votes
2 answers

Which layer of an application should keep security logic (permissions, authorization)?

Since the most similar questions are related to ASP MVC I want to know some common right choice strategies. Lets try to decide, will it go into the business layer or sit on the service layer. Considering service layer to have a classical remote…
5
votes
1 answer

Implement the business logic in an app server with spring

Is posible implement the business logic in an App Server remote using pojos instead of either EJB or Servlets???. The main idea is apply a model of 3 layers where the clients may be both web browsers and desktop applications, and they share the…
HenryOS
  • 119
  • 2
  • 8
5
votes
3 answers

Using MVC + Repository Pattern, where Business Logic should be?

I want to know the right concept about it. If I have a MVC application with Repository Pattern, where the BL should be? Should it be inside the Model? Model should have all the business logic before call the unitofwork to insert or not the data…
5
votes
2 answers

Repository Pattern and Mapping between Business Objects and Data Access Objects

I use Entity Framework as ORM in my .net MVC project. I've implemented the Repository-Pattern (generic) to get/save/update/remove DAOs (Data Access Objects). I also have Business Objects which contain all the business logic. I have - for example - a…
sjkm
  • 3,887
  • 2
  • 25
  • 43
5
votes
1 answer

Symfony2: best approach to use business (repository) logic in entity or controller

I'm having a design issue in my project, related to where put some business logic. I have three entities, Event, TicketOrder and Ticket. One Event has a lot of TicketOrders and one TicketOrder has a lot of Tickets. In my template, I have to show…
Hugo Nogueira
  • 1,298
  • 1
  • 12
  • 24