Scott Kuhl

Warning: I may have no idea what I am talking about!
posts - 765, comments - 862, trackbacks - 350

My Links

News


Help CMTA!

Twitter







Tag Cloud

Archives

Post Categories

Image Galleries

Build a Data Access Layer with the Visual Studio 2005 DataSet Designer

A good data access layer is critical for most business applications, whether that layer resides on a middle tier application server, a web server or on the client. Data access layers tend to involve a lot of error-prone, repetitive coding if you try to do it by hand. You can alleviate some of that by designing a good set of base and helper classes to encapsulate the repeating patterns, or by using a code generation tool. However, you still usually have to write all the data access methods by hand for the ad-hoc queries that service large parts of your application.

If you are using Visual Studio 2005, that does not have to be the case. Some significant improvements have been made to the Visual Studio 2005 DataSet designer and the code that it generates that make it so you will rarely have to write your data access methods by hand of you choose to work with DataSets. In this article, I’ll walk you through what those features are and how to use them. I’ll also discuss some of the pros and cons of using the new features and give some guidance on when you might want to do something different.

Read Build a Data Access Layer with the Visual Studio 2005 DataSet Designer

Note: This is an old post moved from my Google page.

Print | posted on Monday, June 12, 2006 12:37 PM | Filed Under [ .NET ]

Feedback

Gravatar

# re: Build a Data Access Layer with the Visual Studio 2005 DataSet Designer

How can i change the textbox to a FILLED combobox, where the right value is already chosen?

Lets say i got a table clients and one colums "clientType" which is a foreign key to the table clientTypes.
How can i get these values into the detail view or the DataGridView, select the actual value that is in the table client and save it if i want with the designer?
6/27/2006 9:11 AM | Thomas Huber
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: