只是想知道如何设计这个...... [英] just wondering how to design this...

查看:53
本文介绍了只是想知道如何设计这个......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


请允许我再次访问这个话题,因为

最长时间阻碍了我。即使在我过去收到的重大回复之后。我猜他们可能会有点夸张或者我的要求不是很清楚。 Ia ?? m

投注后者(不要求清楚)所以经过几个月的琢磨

请允许我重新解释我的问题。好的,所以我已经开始了


鉴于:Northwind客户和订单表。

目标1我想创建一个简单的赢取应用程序我希望能够清理

我正在挑战的一些架构问题。

目标2我想要完成的只是编辑客户的订单。


例如,显示客户列表。我应该可以选择一个客户

然后显示该客户的订单列表。最后选择一个

订单进行编辑。


我的理解挑战:

我有课堂设计问题。让我首先问我一个问题然后我会

也许在我明白这个之后跟进下一个。

例如:

我想知道我是否想要获得客户的订单我是否会在客户的班级或订单类中创建一个名为GetOrders的方法?


谢谢,

rodchar

解决方案

嗨Rod,


第一个问题:在我看来,getorders()逻辑上会在

客户类中;订单类将包含处理

订单数组的方法。


HTH,


Bernie Yaeger


" rodchar" < RO ***** @ discussions.microsoft.com>在留言中写道

新闻:1F ********************************** @ microsof t.com ...

大家好,

请允许我再次访问这个主题,它阻碍了我最长的时间。即使在我过去收到的重大回复之后。我猜他们可能会有点过头,或者我的要求不是很清楚。我打赌后者(不要求清楚)所以经过几个月的思考
请允许我重新解释我的问题。好的,所以我已经开始了

鉴于:Northwind客户和订单表。
目标1我想创建一个简单的赢取应用程序,我希望能够清理
我受到挑战的一些架构问题。
目标2我想要完成的只是编辑客户的订单。

例如,显示客户列表。我应该可以选择一个
客户
然后显示该客户的订单列表。最后选择

命令进行编辑。

我的理解挑战:
我有课堂设计问题。让我首先问我一个问题然后我会在明确这个问题之后跟进下一个问题。
例如:
我想知道我是否想要为了获得客户的订单,我会在客户的班级或订单班中创建一个名为GetOrders的
方法吗?

谢谢,
rodchar


得到它:我的Customer类中的GetOrders方法

现在:我正在使用带有客户和订单的类型化数据集其中的表格。

我的第一个猜测是将客户类中的新数据集调暗并获得所有客户的清单

。然后,一旦我找回一个客户,我将使用

GetOrders方法。


在我的GetOrders方法中,我是否调暗一个新的Order对象传递参考资料

的数据集,以便我可以填充订单表?


" Bernie Yaeger"写道:

嗨Rod,

第一个问题:在我看来,getorders()逻辑上会在
客户类中;订单类将包含处理您获得的订单数组的方法。

HTH,

Bernie Yaeger

rodchar < RO ***** @ discussions.microsoft.com>在消息中写道
新闻:1F ********************************** @ microsof t.com。 ..

大家好,

请允许我再次访问这个话题,它阻碍了我最长的时间。即使在我过去收到的重大回复之后。我猜他们可能会有点过头,或者我的要求不是很清楚。我打赌后者(不要求清楚)所以经过几个月的思考
请允许我重新解释我的问题。好的,所以我已经开始了

鉴于:Northwind客户和订单表。
目标1我想创建一个简单的赢取应用程序,我希望能够清理
我受到挑战的一些架构问题。
目标2我想要完成的只是编辑客户的订单。

例如,显示客户列表。我应该可以选择一个
客户
然后显示该客户的订单列表。最后选择

命令进行编辑。

我的理解挑战:
我有课堂设计问题。让我首先问我一个问题然后我会在明确这个问题之后跟进下一个问题。
例如:
我想知道我是否想要为了获得客户的订单,我会在客户的班级或订单班中创建一个名为GetOrders的
方法吗?

谢谢,
rodchar



嗨ROd,


是的;听起来合情合理。


伯尼


" rodchar" < RO ***** @ discussions.microsoft.com>在消息中写道

新闻:D9 ********************************** @ microsof t.com ...

得到它:我的Customer类中的GetOrders方法
现在:我正在使用带有客户和订单表的类型化数据集
它。我的第一个猜测是在客户类中调暗一个新的数据集并获得所有客户的
列表。然后,一旦我找回一个客户,我将使用
GetOrders方法。

在我的GetOrders方法中,我是否通过
引用调暗一个新的Order对象
Bernie Yaeger写道:

嗨Rod,

第一个问题:在我看来,getorders()逻辑上会在
客户类中;订单类将包含处理您获得的订单数量的方法。

HTH,

Bernie Yaeger

" rodchar" < RO ***** @ discussions.microsoft.com>在消息中写道
新闻:1F ********************************** @ microsof t.com。 ..

>大家好,
>
>请允许我再一次重新审视这个话题,因为
>
>最长。即使在我过去收到的重大回复之后。我猜他们
>可能
>有点过头了,或者我的要求不是很清楚。我是
>投注后者(不要求清楚)所以经过几个月的
>思考
>请允许我重新解释一下我的问题。好的,所以我已经开始了
>
>鉴于:Northwind客户和订单表。
>目标1我想创建一个简单的胜利应用程序,我希望能够清理
>我受到挑战的一些架构问题。
>目标2我想要完成的是编辑客户的订单。
>
>例如,显示客户列表。我应该可以选择一个
>客户
>然后显示该客户的订单列表。最后
>选择
>
>为了编辑。
>
>我的理解挑战:
>我有课堂设计问题。让我先问一下我的问题
>我会
>也许在我清楚这个之后跟进下一个。
>例如:
>我想知道我是否想要获得客户的订单我会创建一个
>方法
>在客户的班级或订单班中调用GetOrders?
>
>谢谢,
> rodchar
>




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. Ia??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,

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
>




这篇关于只是想知道如何设计这个......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆