Diferences or wich is better?

  • Thread starter Thread starter Dagoberto Flores
  • Start date Start date
D

Dagoberto Flores

I have a question using Application Blocks for .NET. Wich is the better
way:

A) Create the objects manually, creat the DataSet, Parameters, SqlCommands,
etc. Like: DataSet ds = new DataSet();

or

B) Create the objects visually, because I have all there: DataSet,
SqlCommands, the parameters are into the DataSet.

Thanks

Dago Flores
 
Dago,

Some of the advantages of using the visual objects that comes to mind:

- The DataAdapter will try to create all the commands for you (Update, Insert and Delete) using the DataAdapter Wizard.

- Creating the DataSet Visually, will cause the Dataset to be typed. Meaning the different objects inside the Dataset will be exposed as properties instead of through a
collection. For example,

- Dataset: To get to the Customers table, you use soemthing like:

ds.Tables("Customers")

- Typed DataSet:

ds.Customers

- Available to binding at design time.

- Prevents you from typing wrong filed names or table names, etc...

- Some performance gain since all the objects are created at design time.

I hope this helps!


Thanks,
Hussein Abuthuraya
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Are you secure? For information about the Microsoft Strategic Technology Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.
 
Back
Top