Hello all,
Please allow me to revisit this topic once more it has hindered me for the
longest. Even after the great replies I got in the past. I guess they might
have been a bit over my head or my requirements weren't very clear. I’m
betting on the latter (not asking clear) so after several months of pondering
please allow me to rephrase my question. Ok, so I'll begin already
Given: Northwind Customers and Orders tables.
Goal1 I'd like to create a simple win app that I'm hoping will clear up
some architecture questions I'm challenged with.
Goal2 All I want to accomplish is to edit a customer's order.
For example, display a list of customers. I should be able select a customer
which then displays a list of orders for that customer. And finally select an
order to edit.
My understanding challenge:
I'm having class design issues. let me first ask my one question then I'll
maybe followup with the next after I'm clear on this one.
For instance:
I'm wondering if I want to get orders for a customer would I create a method
called GetOrders in the Customer's class or Order class?
Thanks,
rodchar 16 1055
Hi Rod,
First question first: in my mind, getorders() would logically be in the
customers class; the orders class would contain methods that deal with the
array of orders you 'get'.
HTH,
Bernie Yaeger
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:1F**********************************@microsof t.com... Hello all,
Please allow me to revisit this topic once more it has hindered me for the longest. Even after the great replies I got in the past. I guess they might have been a bit over my head or my requirements weren't very clear. I'm betting on the latter (not asking clear) so after several months of pondering please allow me to rephrase my question. Ok, so I'll begin already
Given: Northwind Customers and Orders tables. Goal1 I'd like to create a simple win app that I'm hoping will clear up some architecture questions I'm challenged with. Goal2 All I want to accomplish is to edit a customer's order.
For example, display a list of customers. I should be able select a customer which then displays a list of orders for that customer. And finally select an order to edit.
My understanding challenge: I'm having class design issues. let me first ask my one question then I'll maybe followup with the next after I'm clear on this one. For instance: I'm wondering if I want to get orders for a customer would I create a method called GetOrders in the Customer's class or Order class?
Thanks, rodchar
Got it: my GetOrders method in my Customer class
Now: i'm using a typed dataset with both the customers and orders table in it.
my first guess is to dim a new dataset in the customer class and get a list
of all the customers. And then, once i retrieve one customer i'll use the
GetOrders method.
Inside my GetOrders method, do i dim a new Order object passing a reference
of the dataset so i can populate the Orders table?
"Bernie Yaeger" wrote: Hi Rod,
First question first: in my mind, getorders() would logically be in the customers class; the orders class would contain methods that deal with the array of orders you 'get'.
HTH,
Bernie Yaeger
"rodchar" <ro*****@discussions.microsoft.com> wrote in message news:1F**********************************@microsof t.com... Hello all,
Please allow me to revisit this topic once more it has hindered me for the longest. Even after the great replies I got in the past. I guess they might have been a bit over my head or my requirements weren't very clear. I'm betting on the latter (not asking clear) so after several months of pondering please allow me to rephrase my question. Ok, so I'll begin already
Given: Northwind Customers and Orders tables. Goal1 I'd like to create a simple win app that I'm hoping will clear up some architecture questions I'm challenged with. Goal2 All I want to accomplish is to edit a customer's order.
For example, display a list of customers. I should be able select a customer which then displays a list of orders for that customer. And finally select an order to edit.
My understanding challenge: I'm having class design issues. let me first ask my one question then I'll maybe followup with the next after I'm clear on this one. For instance: I'm wondering if I want to get orders for a customer would I create a method called GetOrders in the Customer's class or Order class?
Thanks, rodchar
Hi ROd,
Yep; sounds logical to me.
Bernie
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:D9**********************************@microsof t.com... Got it: my GetOrders method in my Customer class Now: i'm using a typed dataset with both the customers and orders table in it. my first guess is to dim a new dataset in the customer class and get a list of all the customers. And then, once i retrieve one customer i'll use the GetOrders method.
Inside my GetOrders method, do i dim a new Order object passing a reference of the dataset so i can populate the Orders table? "Bernie Yaeger" wrote:
Hi Rod,
First question first: in my mind, getorders() would logically be in the customers class; the orders class would contain methods that deal with the array of orders you 'get'.
HTH,
Bernie Yaeger
"rodchar" <ro*****@discussions.microsoft.com> wrote in message news:1F**********************************@microsof t.com... > Hello all, > > Please allow me to revisit this topic once more it has hindered me for > the > longest. Even after the great replies I got in the past. I guess they > might > have been a bit over my head or my requirements weren't very clear. I'm > betting on the latter (not asking clear) so after several months of > pondering > please allow me to rephrase my question. Ok, so I'll begin already > > Given: Northwind Customers and Orders tables. > Goal1 I'd like to create a simple win app that I'm hoping will clear up > some architecture questions I'm challenged with. > Goal2 All I want to accomplish is to edit a customer's order. > > For example, display a list of customers. I should be able select a > customer > which then displays a list of orders for that customer. And finally > select > an > order to edit. > > My understanding challenge: > I'm having class design issues. let me first ask my one question then > I'll > maybe followup with the next after I'm clear on this one. > For instance: > I'm wondering if I want to get orders for a customer would I create a > method > called GetOrders in the Customer's class or Order class? > > Thanks, > rodchar >
thanks for the feedback.
"Bernie Yaeger" wrote: Hi ROd,
Yep; sounds logical to me.
Bernie
"rodchar" <ro*****@discussions.microsoft.com> wrote in message news:D9**********************************@microsof t.com... Got it: my GetOrders method in my Customer class Now: i'm using a typed dataset with both the customers and orders table in it. my first guess is to dim a new dataset in the customer class and get a list of all the customers. And then, once i retrieve one customer i'll use the GetOrders method.
Inside my GetOrders method, do i dim a new Order object passing a reference of the dataset so i can populate the Orders table? "Bernie Yaeger" wrote:
Hi Rod,
First question first: in my mind, getorders() would logically be in the customers class; the orders class would contain methods that deal with the array of orders you 'get'.
HTH,
Bernie Yaeger
"rodchar" <ro*****@discussions.microsoft.com> wrote in message news:1F**********************************@microsof t.com... > Hello all, > > Please allow me to revisit this topic once more it has hindered me for > the > longest. Even after the great replies I got in the past. I guess they > might > have been a bit over my head or my requirements weren't very clear. I'm > betting on the latter (not asking clear) so after several months of > pondering > please allow me to rephrase my question. Ok, so I'll begin already > > Given: Northwind Customers and Orders tables. > Goal1 I'd like to create a simple win app that I'm hoping will clear up > some architecture questions I'm challenged with. > Goal2 All I want to accomplish is to edit a customer's order. > > For example, display a list of customers. I should be able select a > customer > which then displays a list of orders for that customer. And finally > select > an > order to edit. > > My understanding challenge: > I'm having class design issues. let me first ask my one question then > I'll > maybe followup with the next after I'm clear on this one. > For instance: > I'm wondering if I want to get orders for a customer would I create a > method > called GetOrders in the Customer's class or Order class? > > Thanks, > rodchar >
are there some other ways to achieve this which would also be acceptable? if
so, could please give me 1 or 2 other examples.
thanks,
rodchar
"Bernie Yaeger" wrote: Hi ROd,
Yep; sounds logical to me.
Bernie
"rodchar" <ro*****@discussions.microsoft.com> wrote in message news:D9**********************************@microsof t.com... Got it: my GetOrders method in my Customer class Now: i'm using a typed dataset with both the customers and orders table in it. my first guess is to dim a new dataset in the customer class and get a list of all the customers. And then, once i retrieve one customer i'll use the GetOrders method.
Inside my GetOrders method, do i dim a new Order object passing a reference of the dataset so i can populate the Orders table? "Bernie Yaeger" wrote:
Hi Rod,
First question first: in my mind, getorders() would logically be in the customers class; the orders class would contain methods that deal with the array of orders you 'get'.
HTH,
Bernie Yaeger
"rodchar" <ro*****@discussions.microsoft.com> wrote in message news:1F**********************************@microsof t.com... > Hello all, > > Please allow me to revisit this topic once more it has hindered me for > the > longest. Even after the great replies I got in the past. I guess they > might > have been a bit over my head or my requirements weren't very clear. I'm > betting on the latter (not asking clear) so after several months of > pondering > please allow me to rephrase my question. Ok, so I'll begin already > > Given: Northwind Customers and Orders tables. > Goal1 I'd like to create a simple win app that I'm hoping will clear up > some architecture questions I'm challenged with. > Goal2 All I want to accomplish is to edit a customer's order. > > For example, display a list of customers. I should be able select a > customer > which then displays a list of orders for that customer. And finally > select > an > order to edit. > > My understanding challenge: > I'm having class design issues. let me first ask my one question then > I'll > maybe followup with the next after I'm clear on this one. > For instance: > I'm wondering if I want to get orders for a customer would I create a > method > called GetOrders in the Customer's class or Order class? > > Thanks, > rodchar >
are there some other ways to achieve this which would also be acceptable? if
so, could please give me 1 or 2 other examples.
thanks,
rodchar
"Bernie Yaeger" wrote: Hi ROd,
Yep; sounds logical to me.
Bernie
"rodchar" <ro*****@discussions.microsoft.com> wrote in message news:D9**********************************@microsof t.com... Got it: my GetOrders method in my Customer class Now: i'm using a typed dataset with both the customers and orders table in it. my first guess is to dim a new dataset in the customer class and get a list of all the customers. And then, once i retrieve one customer i'll use the GetOrders method.
Inside my GetOrders method, do i dim a new Order object passing a reference of the dataset so i can populate the Orders table? "Bernie Yaeger" wrote:
Hi Rod,
First question first: in my mind, getorders() would logically be in the customers class; the orders class would contain methods that deal with the array of orders you 'get'.
HTH,
Bernie Yaeger
"rodchar" <ro*****@discussions.microsoft.com> wrote in message news:1F**********************************@microsof t.com... > Hello all, > > Please allow me to revisit this topic once more it has hindered me for > the > longest. Even after the great replies I got in the past. I guess they > might > have been a bit over my head or my requirements weren't very clear. I'm > betting on the latter (not asking clear) so after several months of > pondering > please allow me to rephrase my question. Ok, so I'll begin already > > Given: Northwind Customers and Orders tables. > Goal1 I'd like to create a simple win app that I'm hoping will clear up > some architecture questions I'm challenged with. > Goal2 All I want to accomplish is to edit a customer's order. > > For example, display a list of customers. I should be able select a > customer > which then displays a list of orders for that customer. And finally > select > an > order to edit. > > My understanding challenge: > I'm having class design issues. let me first ask my one question then > I'll > maybe followup with the next after I'm clear on this one. > For instance: > I'm wondering if I want to get orders for a customer would I create a > method > called GetOrders in the Customer's class or Order class? > > Thanks, > rodchar >
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:DD**********************************@microsof t.com... are there some other ways to achieve this which would also be acceptable? if so, could please give me 1 or 2 other examples.
Years of development have made me cynical.
Maybe I'm a jaded dinosaur.
I look at different ways of doing stuff and I look at what the benefits are.
I don't find OO actually returns the pluses claimed.
Or at least the sort of OO you're describing.
You already probably realise that you're taking longer.
The only real world benefit (IMO) of using the approach is if you're
re-using objects.
I would suggest you decide whether you have some other reason for doing the
OO thing beyond efficiency of development.
Will your objects will really be re-used?
Often they are not.
That customer logic bit is often only used in the customer maintenance
screen.
Oh... Use stored procedures though.
Stored procedures are arguably another
layer/object/whatever-flavour-of-month-calls-it.
They're also a hell of a lot easier to get your head round than full on OO
so they're quicker to write.
What you do find is that the customer-to-orders data is used in a coupla
reports and maybe maintenance screens.
One stored procedure can be used for the lot.
Anyhow, that's my view.
--
Regards,
Andy O'Neill
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:DD**********************************@microsof t.com... are there some other ways to achieve this which would also be acceptable? if so, could please give me 1 or 2 other examples.
Years of development have made me cynical.
Maybe I'm a jaded dinosaur.
I look at different ways of doing stuff and I look at what the benefits are.
I don't find OO actually returns the pluses claimed.
Or at least the sort of OO you're describing.
You already probably realise that you're taking longer.
The only real world benefit (IMO) of using the approach is if you're
re-using objects.
I would suggest you decide whether you have some other reason for doing the
OO thing beyond efficiency of development.
Will your objects will really be re-used?
Often they are not.
That customer logic bit is often only used in the customer maintenance
screen.
Oh... Use stored procedures though.
Stored procedures are arguably another
layer/object/whatever-flavour-of-month-calls-it.
They're also a hell of a lot easier to get your head round than full on OO
so they're quicker to write.
What you do find is that the customer-to-orders data is used in a coupla
reports and maybe maintenance screens.
One stored procedure can be used for the lot.
Anyhow, that's my view.
--
Regards,
Andy O'Neill
alright: now to select an individual order how would that work?
would have a method in the Order class called GetOrder and call it from the
Customer class?
"Andy O'Neill" wrote: "rodchar" <ro*****@discussions.microsoft.com> wrote in message news:DD**********************************@microsof t.com... are there some other ways to achieve this which would also be acceptable? if so, could please give me 1 or 2 other examples.
Years of development have made me cynical. Maybe I'm a jaded dinosaur. I look at different ways of doing stuff and I look at what the benefits are. I don't find OO actually returns the pluses claimed. Or at least the sort of OO you're describing.
You already probably realise that you're taking longer.
The only real world benefit (IMO) of using the approach is if you're re-using objects.
I would suggest you decide whether you have some other reason for doing the OO thing beyond efficiency of development. Will your objects will really be re-used? Often they are not. That customer logic bit is often only used in the customer maintenance screen.
Oh... Use stored procedures though. Stored procedures are arguably another layer/object/whatever-flavour-of-month-calls-it. They're also a hell of a lot easier to get your head round than full on OO so they're quicker to write. What you do find is that the customer-to-orders data is used in a coupla reports and maybe maintenance screens. One stored procedure can be used for the lot.
Anyhow, that's my view. -- Regards, Andy O'Neill
alright: now to select an individual order how would that work?
would have a method in the Order class called GetOrder and call it from the
Customer class?
"Andy O'Neill" wrote: "rodchar" <ro*****@discussions.microsoft.com> wrote in message news:DD**********************************@microsof t.com... are there some other ways to achieve this which would also be acceptable? if so, could please give me 1 or 2 other examples.
Years of development have made me cynical. Maybe I'm a jaded dinosaur. I look at different ways of doing stuff and I look at what the benefits are. I don't find OO actually returns the pluses claimed. Or at least the sort of OO you're describing.
You already probably realise that you're taking longer.
The only real world benefit (IMO) of using the approach is if you're re-using objects.
I would suggest you decide whether you have some other reason for doing the OO thing beyond efficiency of development. Will your objects will really be re-used? Often they are not. That customer logic bit is often only used in the customer maintenance screen.
Oh... Use stored procedures though. Stored procedures are arguably another layer/object/whatever-flavour-of-month-calls-it. They're also a hell of a lot easier to get your head round than full on OO so they're quicker to write. What you do find is that the customer-to-orders data is used in a coupla reports and maybe maintenance screens. One stored procedure can be used for the lot.
Anyhow, that's my view. -- Regards, Andy O'Neill
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com... alright: now to select an individual order how would that work? would have a method in the Order class called GetOrder and call it from the Customer class?
Possibly.
Maybe you should have an orders class.
It depends.
--
Regards,
Andy O'Neill
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com... alright: now to select an individual order how would that work? would have a method in the Order class called GetOrder and call it from the Customer class?
Possibly.
Maybe you should have an orders class.
It depends.
--
Regards,
Andy O'Neill
you're saying have an Order class and an Orders class?
"Andy O'Neill" wrote: "rodchar" <ro*****@discussions.microsoft.com> wrote in message news:60**********************************@microsof t.com... alright: now to select an individual order how would that work? would have a method in the Order class called GetOrder and call it from the Customer class?
Possibly.
Maybe you should have an orders class.
It depends.
-- Regards, Andy O'Neill
you're saying have an Order class and an Orders class?
"Andy O'Neill" wrote: "rodchar" <ro*****@discussions.microsoft.com> wrote in message news:60**********************************@microsof t.com... alright: now to select an individual order how would that work? would have a method in the Order class called GetOrder and call it from the Customer class?
Possibly.
Maybe you should have an orders class.
It depends.
-- Regards, Andy O'Neill
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:D6**********************************@microsof t.com... you're saying have an Order class and an Orders class?
Ooops.... sorry. I misread the post somehow.
--
Regards,
Andy O'Neill
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:D6**********************************@microsof t.com... you're saying have an Order class and an Orders class?
Ooops.... sorry. I misread the post somehow.
--
Regards,
Andy O'Neill This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Steven Burn |
last post by:
Just wondering if it would be possible to convert an existing e-mail form
to;
1. Send the e-mail (as it does now...without problems)
2. Copy one folder on the server, to another new folder
...
|
by: komone |
last post by:
"Now is the time for all good web developers to use stylesheets".
Hmm OK, so I start this commercial site design with the express intent
of using CSS entirely. (Something I haven't attempted in...
|
by: KevinGPO |
last post by:
Just wondering if anyone knows if there are converters to convert from:
MS Visual C++ 6.0 or
MS Visual Studio 2003
project files into UNIX autogen/configure/make files?
|
by: James |
last post by:
Hi I'm James Newbie
I'm going to use some xml from a previous posters because it's similiar to
mine
<Store>
<Name> My Book Store</Name>
<Phone> 555-555-5555 </Phone>
<Book id="1" >...
|
by: suresh |
last post by:
Hi! Guys,
I am using a base class and I am inheriting it into derived class page
instead of using System.Web.UI.Page. which is giving the following
error.
"The file could not be loaded into...
|
by: cj |
last post by:
I'm testing some code I typed in from an example program I was given.
It works with F5. When I try to run the exe from an icon on the desktop
I'm given a form that says:
Just-In-Time Debugging...
|
by: subrato |
last post by:
Hi,
I dont know if this is the right forum for this question but I hope
someone is able to answer this for me. I know a lot of information can
be retrieved using IIS Log files. But there seems to...
|
by: bsruth |
last post by:
I tried for an hour to find some reference to concrete information on
why this particular inheritance implementation is a bad idea, but
couldn't. So I'm sorry if this has been answered before....
|
by: neelsmail |
last post by:
Hi,
I have been working on C++ for some time now, and I think I have a
flair for design (which just might be only my imagination over-
stretched.. :) ). So, I tried to find a design...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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: 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,...
|
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,...
| |