473,699 Members | 2,804 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where does business logic go?

Hello Chaps,

Me and a collegue have been talking about where the best place to put
business logic is.

I think that the best place is where Microsoft suggest - in a seperate
business logic layer. The alternative is to have all the logic in with the
business entity objects, thus eliminating the business logic layer.

The reason that I prefer the seperate layer is because I think its more
flexible.

I was hoping someone might have further insight into this for us

Thanks all

Simon
Jul 21 '05 #1
4 2248
Yes, the standard for enterprise applications is to have a separate business
logic layer.
However, for smaller, less formal applications that are unlikely to grow
large amounts over time, having many layers can be overkill.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Simon Harvey" <si**********@t he-web-works.co.uk> wrote in message
news:uE******** *****@TK2MSFTNG P11.phx.gbl...
Hello Chaps,

Me and a collegue have been talking about where the best place to put
business logic is.

I think that the best place is where Microsoft suggest - in a seperate
business logic layer. The alternative is to have all the logic in with the
business entity objects, thus eliminating the business logic layer.

The reason that I prefer the seperate layer is because I think its more
flexible.

I was hoping someone might have further insight into this for us

Thanks all

Simon

Jul 21 '05 #2
A small addition - business entity objects are unnecessary unless you want
to encapsulate some complex operations on entity data into the business
entity classes.
According to Microsoft, using business entity objects as simple data holders
is not a good practice. More regular means such as DataSets should rather be
used for this purpose.
The business logic classes, therefore, should use these DataSets and perform
the logic itself over data stored there. If there are explicit constraints,
however, these
should be defined by means of the DataSet XSD schema.

"Simon Harvey" <si**********@t he-web-works.co.uk> wrote in message
news:uE******** *****@TK2MSFTNG P11.phx.gbl...
Hello Chaps,

Me and a collegue have been talking about where the best place to put
business logic is.

I think that the best place is where Microsoft suggest - in a seperate
business logic layer. The alternative is to have all the logic in with the
business entity objects, thus eliminating the business logic layer.

The reason that I prefer the seperate layer is because I think its more
flexible.

I was hoping someone might have further insight into this for us

Thanks all

Simon


Jul 21 '05 #3
Hi Dmitriy,

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.c om> wrote
in message news:uL******** *******@tk2msft ngp13.phx.gbl.. .
<snip>
According to Microsoft, using business entity objects as simple data holders is not a good practice. More regular means such as DataSets should rather be used for this purpose.

<snip>

Do you have a reference for this?

Regards,
Daniel
Jul 21 '05 #4
I remember seeing some articles that mentioned this.
One of them was :

http://msdn.microsoft.com/library/de...tml/BOAGag.asp

S
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
300
by: DraguVaso | last post by:
Hi, I'm developping VB.NET-applications for 2 years now, and I'm now moving on to bigger porjects, so I'm examining the use of Visio for enterprise architects, and 'the design' we should use. I'm my whole carreer already using the concept of the 3 tiers (presentation-, business- and datalayer), but I don't now 'the exact way' to do it (shame on me, hehe). Does anybody know some good articles about this subject? So not the theoretical...
4
1489
by: Simon Harvey | last post by:
Hello Chaps, Me and a collegue have been talking about where the best place to put business logic is. I think that the best place is where Microsoft suggest - in a seperate business logic layer. The alternative is to have all the logic in with the business entity objects, thus eliminating the business logic layer. The reason that I prefer the seperate layer is because I think its more
3
1714
by: Jules | last post by:
Sorry for being contentious title, but I am confused and concerned over the level of MS infrastructure support to the business logic layer. MS have great support to Web services, for EAI and B2B Integration, ASP for Web pages. We also have SQL Server, ADO, data sets etc for great Data services layer. Unfortunalely most of the Architectural (Patterns, papers, Samples etc) emphasis seem to be biased torwards web based applications and...
3
2062
by: Rudderius | last post by:
Hey folks, I have a toppic I would like to discuss: Many authors write that business objects should have the CRUD behavior implemented (create, read, update, delete). Which means that a class Customer has a method Load() etc... In my opinion this is not the right way, because this means that you implement the way a class is saved in the class itself.
14
4849
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it can be done using the designer but I intentionally don't want to use that. The one reason is that you cannot change the code generated by the designer. The other could be that you have more free hand and control to design your GUI. 2....
8
1650
by: =?Utf-8?B?Y2FsZGVyYXJh?= | last post by:
Dear all, I am building a set of libraries working in a n tiers architecture Some of those libraries use common configuration settings like the database connection string and some others. I can imgaine that I can get one config file per buisness library. What is teh best way and where to store configuration files ? Should I get only one with everything in and located in a particular common
2
4056
by: Chris Zopers | last post by:
Hello, I would like to know what's the best way to implement a business logic layer between my user interface and my database. I would say I'd make a dll-project for the business logic layer and make classes that represent objects/tables. For example, if I have a table named 'tblPersons' I would make a class named 'clsPersons' and a class 'clsPerson' that represents one person/record. In class 'clsPersons' I can make some business...
4
1371
by: Mike | last post by:
I have an n-tier system as follows: Business Data Access Web Services
20
2392
by: David Thielen | last post by:
Hi; When we add a reference to a web app, where is that information stored? There is no project file, it's not in the web.config or solution file. ??? - thanks - dave david@at-at-at@windward.dot.dot.net Windward Reports -- http://www.WindwardReports.com
0
8687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8914
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7750
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.