Hi People
I have a design issue
I have atleast 6 to 7 forms whose main functionality is to
add a new record , delete a record and update records
zipcodeform -- front end form variables( zipcode.text ,
zipstate.text)
citycodeform-- front end form variables(citycode.text ,
cityname.text,cityregion.text)
addressform -- front end form variables(address1.text ,
address2.text,telephone.text)
..
..
..
----
..
..
----
..
..
The above forms have the same functionality as in adding a
new record , updating old records or deleting some records
So wont it be easy to write a class with 3 methods
DBinsert()
DBupdate()
DBdelete()
and over load these functions to
get desired result instead of having a class like
zipcodeclass , citycodeclass and addressform class and
having
to repeat the same functionality
instead I am having a basedbclass and the overlaoding the
methods
Is it the rite way to do this
Suggestions , comments of any type accepted
Thanks
DRU 1 977
Sounds like a fairly standard approach if I understand you correctly.
You have a few business objects (zipcode, citycode and address) that in turn
use your data access class that encapsulates the database work.
Pretty typical 3 tier system. Nothing wrong with that.
--
I hope this helps,
Steve C. Orr, MCSD http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
"DRU" <bo*****@yahoo.com> wrote in message
news:04****************************@phx.gbl... Hi People
I have a design issue
I have atleast 6 to 7 forms whose main functionality is to add a new record , delete a record and update records
zipcodeform -- front end form variables( zipcode.text , zipstate.text)
citycodeform-- front end form variables(citycode.text , cityname.text,cityregion.text)
addressform -- front end form variables(address1.text , address2.text,telephone.text) . . . ---- . . ---- . .
The above forms have the same functionality as in adding a new record , updating old records or deleting some records
So wont it be easy to write a class with 3 methods
DBinsert() DBupdate() DBdelete()
and over load these functions to
get desired result instead of having a class like zipcodeclass , citycodeclass and addressform class and having to repeat the same functionality
instead I am having a basedbclass and the overlaoding the methods
Is it the rite way to do this
Suggestions , comments of any type accepted
Thanks DRU
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tony Lee |
last post by:
Some time a ago, on this newsgroup the following comments were made in
recommending
good references for Access (2003)
>I used to recommend Dr. Rick Dobson's, "Programming Access <version>" for...
|
by: ambika |
last post by:
Hello,
I have a very basic doubt.
Why is C called a structured programming language??why structured?
C++ is called a Object Oriented language 'cos it obeys the OOP's
concepts..Why is C called a...
|
by: Simon Harvey |
last post by:
Hi,
In my application I get lots of different sorts of information from
databases. As such, a lot of information is stored in DataSets and DataTable
objects.
Up until now, I have been passing...
|
by: Patrick |
last post by:
Hi all,
New to .NET, I'm working on an Winforms client application using VS
2005 beta2. My needs considering data storage are the followings:
(1) Small files (0 < length < 10 mb), containing...
|
by: jqpdev |
last post by:
Hello all...
I'm coming from a Borland Delphi background. Delphi has a specific
component called a Data Module. In the designer the Data Module behaves
like a windows form. A developer can...
| |
by: Charles Law |
last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this
once before, but ...".
Two users are both looking at the same data, from a database. One user
changes the data and...
|
by: Edward Diener No Spam |
last post by:
The definition of a component model I use below is a class which allows
properties, methods, and events in a structured way which can be
recognized, usually through some form of introspection...
|
by: RAR in WA |
last post by:
I'm moving to .Net framework 2.0 from Visual Studio 2002/3 with more time on
desktop apps than ASP.Net, although I have done a small amount in ASP.Net. Is
best practice for ASP.Net now to use the...
|
by: Motoma |
last post by:
This article is cross posted from my personal blog. You can find the original article, in all its splendor, at http://motomastyle.com/creating-a-mysql-data-abstraction-layer-in-php/.
Introduction:...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |