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 / ASP.NET / Building Controls / January 2004

Tip: Looking for answers? Try searching our database.

DB connected business objects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Billy Porter - 31 Jan 2004 00:26 GMT
Greetings,

I need some help on writing business objects in C#. These objects are
suppose to communicate with a SQL server DB through a DAL.
So let's say I want to create a new Customer (simply adding a new record in
my Customers table). How would you suggest I go about it? Should I use
static Create and Delete methods and a non-static Save method for updating
the values?

Signature

Thanks

/Billy

Mary Chipman - 31 Jan 2004 22:40 GMT
You should consider the architectural requirements of your application
before writing a single line of C# code. Usually you want all database
access to be through disconnected, stateless components. On the server
side, stored procedures that map to the methods in your DAL is one way
to go, but not the only one. Whatever you decide, it's best to plan
things in advance. Otherwise, you end up writing a lot of code and
throwing it away later. There's lots of good resources, whitepapers,
and sample code in the help files and on MSDN.

-- Mary
MCW Technologies
http://www.mcwtech.com

>Greetings,
>
[quoted text clipped - 4 lines]
>static Create and Delete methods and a non-static Save method for updating
>the values?

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.