473,666 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generating Datasets

Hello,

I am interested in anyone's preference as to creating
datasets in code vs generating them using the UI. I know
typing is an advantage of the latter method. But any other
information would be welcome.

Thanks in advance!
Jack
Jul 21 '05 #1
1 1525
Jack,

I'm guessing that by "generating them using the UI", you're refering to
dragging onto a design surface, such as a form's. If so, there are some
definite disadvantages to this approach. The main issue is one of a lack of
control over the scope and instantiation of the object variables, which
might lead to performance problems in the application.

Another potential problem is the effect on maintainability of your code.
For example, if you create a dataset via the RAD tools, it'll be declared as
a class field. While this might be appropriate in some cases, it makes no
sense in others (e.g.: dataset is only used in a single procedure). This
sort of thing can leave future code maintainers (potentially including you
<g>) scratching their heads for no good reason.

Yet another potential problem is that it rather limits you to the built-in
objects unless you're willing to spend quite a bit of time implementing
appropriate design-time UI functionality in your own custom objects. If you
lock yourself into using the built-in RAD tools, you won't be taking
advantage of some of the benefits OOP offers.

Nicole
"Jack Notarangelo" <in**@systemsyn ergy.com> wrote in message
news:62******** *************** *****@phx.gbl.. .
Hello,

I am interested in anyone's preference as to creating
datasets in code vs generating them using the UI. I know
typing is an advantage of the latter method. But any other
information would be welcome.

Thanks in advance!
Jack

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2219
by: linda | last post by:
I can use GD::Graph to generate a graph with two-axes by using two datasets and generate a stacked bar chart by using multiple datasets now. However, I want to generate a mixed-type graph which contains a stacked bar chart and a linespoints chart. Is this possible for me to generate the stacked bar chart by setting 'cumulate' option against the left axis and to generate the linespoints charts against the right axis simultaneously? ...
10
1957
by: Al Christoph | last post by:
Please forgive me if this is the wrong place to post this. The last place I posted got me a fairly rude response. I guess vb.db people just don't want to think about XML as database. At any rate, here is what I posted: I have downloaded the final production version of VS 2005 pro after testing with Team version. I wonder if I've been screwed or if it's just too early on a Sunday morning. It seems to me that it was relatively trivial to...
4
1730
by: Alpha | last post by:
I have a small Window application and through out the different forms I create a different dataset. At the begining I used the Tools to drag and drop the SqlDataAdapter, connection and dataset objects to the frist few forms but then later I removed those and created these objects in my code. I now see 3 datasets in the Solution Explorer panel part but not all the datasets that I have in my codes. Are these 3 datasets leftover from the...
1
255
by: Jack Notarangelo | last post by:
Hello, I am interested in anyone's preference as to creating datasets in code vs generating them using the UI. I know typing is an advantage of the latter method. But any other information would be welcome. Thanks in advance! Jack
9
2900
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got answered... There are articles on the new TableAdapters where it says that a key new advantage is that a single TableAdapter, which can have multiple queries, can be used on multiple forms. Now that was in an article on using TableAdapters with...
0
855
by: astropup | last post by:
at some point in the last few days I've lost the ability to add new datasets to my web page in one specific solution/project. If I start a new solution I can use the server solution explorer to drag a table from sql-Server onto my web page, then generate the dataset. When I try this on the project I am working on - the compiler can't find some dataset reference... ------ Build started: Project: funWithCensus, Configuration: Debug
4
1440
by: S Chapman | last post by:
Is there any tool that generates Typed DataTables rather than Typed Datasets? The trouble we are having is we have quite a few tables in our database and a single table can be a part of more than one dataset. If we use the XSD.Exe, the datatable definitions are repeated in every dataset they appear in; causing our data definition layer to bloat. Let us say there is a database table called Account which appears in two dataset definitions...
0
845
by: guy | last post by:
First:- i do not usually use datasets so this is probably old hat however- i have twoo table - one many relationship and have dragged both onto the dataset designer and generated the getdata method - works fine however if i try and generate the Update or Insert methods the query builder just gives me "Update" or "Insert" and an exception "Unable to parse query, b*gg*r off" or words to that effect presumably this is because it cannot...
12
3581
by: BillE | last post by:
I'm trying to decide if it is better to use typed datasets or business objects, so I would appreciate any thoughts from someone with more experience. When I use a business object to populate a gridview, for example, I loop through a datareader, populating an array list with instances of a custom class in the middle tier, and then send the array list up to the presentation layer and bind the gridview to it. If I use a typed dataset, I...
0
8448
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8783
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8552
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8640
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7387
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2773
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 we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.