Q&A
| Q1: | You had me write all this code yesterday. What should I do: write the code or use the wizards? |
A1: | When designing Windows Forms applications, using the wizards is a highly effective and efficient way to write all your data access code. Most developers like to separate their data logic into components, but the Data Form Wizard isn't an effective way to do that. Either way, if you're new to ADO.NET, using the tools in Visual Studio .NET to learn the syntax for data access is a good idea. |
| Q2: | You said DataReaders are lightweight and incur less overhead cost. But everything I learned today used DataSets, not DataReaders. Why? |
A2: | Because DataReaders don't support databinding, they're not very useful in Windows Forms, where you can use databinding for all your data presentations. |
| Q3: | What happens if my data requirements change and I need to change the code that the wizard created for the InsertCommand, SelectCommand, DeleteCommand, and UpdateCommand properties on the DataAdapter? |
A3: | Your best bet is to run the Configure Adapter Wizard from the Data menu. This enables you to easily change the queries or stored procedures for the DataAdapter, and let the Configuration Wizard rewrite the data access code. |
• Table of Contents
• Index
Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days
By
Jason Beres
Publisher
: Sams Publishing
Pub Date
: January 14, 2003
ISBN
: 0-672-32421-0
Pages
: 696
Sams Teach Yourself Visual Studio .NET in 21 Days will help developers that are new to application development and experienced developers understand how to use the .NET Framework and Visual Studio .NET to rapidly develop any type of computer application. The Visual Studio .NET development environment is the most comprehensive developer tool ever created, putting that together with the .NET Frameworks' Class Libraries, the developer has everything he or she needs to get up-to-speed on Microsoft's latest revolution in application development. This book will guide the developer through using the VS .NET IDE, the Visual Basic .NET and C# language, and the supporting tools available from Microsoft to create Windows and Web-based applications. The market is full of books that pretty much say the same thing, which is already available in the help files, the author of this book has written and deployed over a dozen successful applications using Visual Studio .NET and the .NET Framework. All of his expertise and experience is used to give you the most comprehensive title on using Visual Studio .NET.