B
Burning_Ranger
I have a database with several tables all linked together using
relationships, I am trying to build a system in VB .NET utilising this
database.
I have some Q's:
1. I've followed some ADO.NET tutorials and they all use databases with
1 table. The tutorials use a DataTable to hold a copy of the table in
memory, but I get the impression now that DataSet's are the thing to
use. How does a DataSet differ from a DataTable?
2. My Database has referential integrity set, will ADO.NET recognise
that the tables have relationships and update data automatically that
is linked by referential integrity or do I have to specify the
relationships again in VB.
3. If I'm using a DataTable and use the following code to reference a
particular field of a particular record, what's the equivalent if I'm
using a DataTable?
txtCompany.Text =
dtCustomer.Rows(intRowPos)("CustomerCompany").ToString
4. The books I have tend to all use wizards to make the ADO.NET
connection and tend to use bound controls. I've read that this is not a
good way to use ADO.NET, isn't it?
If someone could point me to a good tutorial that shows how to build
basic app utilising a database, DataSets etc or something similar
(without wizards or bound controls), that would be appreciated. Thanks.
relationships, I am trying to build a system in VB .NET utilising this
database.
I have some Q's:
1. I've followed some ADO.NET tutorials and they all use databases with
1 table. The tutorials use a DataTable to hold a copy of the table in
memory, but I get the impression now that DataSet's are the thing to
use. How does a DataSet differ from a DataTable?
2. My Database has referential integrity set, will ADO.NET recognise
that the tables have relationships and update data automatically that
is linked by referential integrity or do I have to specify the
relationships again in VB.
3. If I'm using a DataTable and use the following code to reference a
particular field of a particular record, what's the equivalent if I'm
using a DataTable?
txtCompany.Text =
dtCustomer.Rows(intRowPos)("CustomerCompany").ToString
4. The books I have tend to all use wizards to make the ADO.NET
connection and tend to use bound controls. I've read that this is not a
good way to use ADO.NET, isn't it?
If someone could point me to a good tutorial that shows how to build
basic app utilising a database, DataSets etc or something similar
(without wizards or bound controls), that would be appreciated. Thanks.