m*****1 发帖数: 8 | 1 I have a stored procedure returning several records. Those returned records
from the stored procedure will be displayed in the textboxes on a form. Some
of fields in those records may be modified in the related textboxes.
Should I use a dataset or a class to store those records from the stored
procedure before they are displayed on the form ? What are the cons and pros
using each one? Thanks a lot. |
N********n 发帖数: 8363 | 2 Google ".net strong typed dataset". You can represent dataset in a
class and Visual Studio or some 3rd party tools can generate it for
you w/ a few drag&drops.
records
【在 m*****1 的大作中提到】 : I have a stored procedure returning several records. Those returned records : from the stored procedure will be displayed in the textboxes on a form. Some : of fields in those records may be modified in the related textboxes. : Should I use a dataset or a class to store those records from the stored : procedure before they are displayed on the form ? What are the cons and pros : using each one? Thanks a lot.
|
A**n 发帖数: 1703 | 3 I'll say datasets for small projects and classes for large projects
involving a team and ongoing maintenance.
records
Some
pros
【在 m*****1 的大作中提到】 : I have a stored procedure returning several records. Those returned records : from the stored procedure will be displayed in the textboxes on a form. Some : of fields in those records may be modified in the related textboxes. : Should I use a dataset or a class to store those records from the stored : procedure before they are displayed on the form ? What are the cons and pros : using each one? Thanks a lot.
|