Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2006

Tip: Looking for answers? Try searching our database.

Where to Put DAL and Business Objects in WinForms App?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Smithers - 07 Feb 2006 05:38 GMT
In Windows Forms MDI applications...

I'm wondering if it is standard practice to create DAL and business objects
as static classes. The only alternative (please enlighten me if I'm wrong
about this) is to instantiate the DAL and business objects in a Form class -
most likely the MDI parent - and then expose the business objects as public
members.

What is standard practice here? [assuming we're not using DCOM or Remoting
or Web services or any other such remote procedure calls].

Thanks!
David Barkol - 07 Feb 2006 08:49 GMT
Your DAL, business objects and other related objects belong in their
own respective libraries. They should not be a part of the WinForm
project. This will provide you flexibility, a layer of abstraction and
cleaner, more logical code.

David Barkol
www.neudesic.com
Nkem - 07 Feb 2006 18:07 GMT
In addition to all the benefits David mentioned, it also makes it somewhat
easier to reuse code since you can just include those libraries in future
application that need any need similar information already in your DAL
libraries.

> Your DAL, business objects and other related objects belong in their
> own respective libraries. They should not be a part of the WinForm
[quoted text clipped - 3 lines]
> David Barkol
> www.neudesic.com

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.