473,748 Members | 9,596 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
Nov 16 '05 #1
4 1493
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

Nov 16 '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


Nov 16 '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
Nov 16 '05 #4
I remember seeing some articles that mentioned this.
One of them was :

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

S
Nov 16 '05 #5

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

Similar topics

4
2252
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
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...
3
1717
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
2066
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
4858
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
1654
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
4059
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
1372
by: Mike | last post by:
I have an n-tier system as follows: Business Data Access Web Services
5
3830
by: Andy B | last post by:
I was just wondering, when you create dataContext methods, should you put business logic there to try and minimize pushing data through 2-3 layers of code? or should the business logic still go in another class somewhere making it access the dataContext methods?
20
2405
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
8991
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
9541
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...
0
9370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8242
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...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
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
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.