S
Sergio Terenas
Hi,
I've actually read 2 books on VB .NET and ADO.NET but I've got a couple
doubts I can't figure out. Hopefully someone may shed some light on this.
If I'm to develop an application that handles, for instance, employees, how
should I go about and implement this ?
1. Should I create a class called "Employee" and have all fields defined in
it (ej. ID, Position, salary, name, etc, etc) and have this same structure
on a table ? If I need to make a change (add a field, etc) does it mean I
have to change de DB and also the class ? How would a pro do this ?
2. I read Datasets work disconnected from the DB. How does ADO.NET handle
concurrency ? Suppose I have two users modify the Employee table. Since
I'd use a disconnected Dataset, how would ADO.NET know which record is the
most recent one ? Is this automatically handled by ADO.NET or should I
write code to handle this ? Sorry, the book didn't dive into the details...
3. I understand how I can create a project to setup a package to be deployed
on the client PCs. Now, if I come up with an upgrade to the application
does the setup project handle the upgrade process replacing newers files and
leaving any configuration done by the user or would I have to uninstall and
install the new package ?
4. Last, I've seen many code snippets and sample applications on the
Internet but none that shows a full database application (Access would be
enough) with a GUI that shows many of the functionality VB.NET offers
(DataGrids, Combos, how to go about to connect to several tables, etc). Any
URLs you may point me to ?
Thanks for your help!
Greetings,
ST
I've actually read 2 books on VB .NET and ADO.NET but I've got a couple
doubts I can't figure out. Hopefully someone may shed some light on this.
If I'm to develop an application that handles, for instance, employees, how
should I go about and implement this ?
1. Should I create a class called "Employee" and have all fields defined in
it (ej. ID, Position, salary, name, etc, etc) and have this same structure
on a table ? If I need to make a change (add a field, etc) does it mean I
have to change de DB and also the class ? How would a pro do this ?
2. I read Datasets work disconnected from the DB. How does ADO.NET handle
concurrency ? Suppose I have two users modify the Employee table. Since
I'd use a disconnected Dataset, how would ADO.NET know which record is the
most recent one ? Is this automatically handled by ADO.NET or should I
write code to handle this ? Sorry, the book didn't dive into the details...
3. I understand how I can create a project to setup a package to be deployed
on the client PCs. Now, if I come up with an upgrade to the application
does the setup project handle the upgrade process replacing newers files and
leaving any configuration done by the user or would I have to uninstall and
install the new package ?
4. Last, I've seen many code snippets and sample applications on the
Internet but none that shows a full database application (Access would be
enough) with a GUI that shows many of the functionality VB.NET offers
(DataGrids, Combos, how to go about to connect to several tables, etc). Any
URLs you may point me to ?
Thanks for your help!
Greetings,
ST