Click here to Skip to main content
15,895,283 members
Home / Discussions / C#
   

C#

 
GeneralA little help.. Pin
Bojan Rajkovic8-May-04 12:21
Bojan Rajkovic8-May-04 12:21 
GeneralRe: A little help.. Pin
leppie8-May-04 19:43
leppie8-May-04 19:43 
GeneralRe: A little help.. Pin
Bojan Rajkovic9-May-04 15:09
Bojan Rajkovic9-May-04 15:09 
GeneralRe: A little help.. Pin
Heath Stewart8-May-04 20:20
protectorHeath Stewart8-May-04 20:20 
GeneralUsing an xsd file for a dataset Pin
MrJJKoolJ8-May-04 11:10
MrJJKoolJ8-May-04 11:10 
GeneralRe: Using an xsd file for a dataset Pin
leppie8-May-04 19:47
leppie8-May-04 19:47 
GeneralDisconnected Datasets Pin
MrJJKoolJ8-May-04 10:02
MrJJKoolJ8-May-04 10:02 
GeneralRe: Disconnected Datasets Pin
Heath Stewart8-May-04 20:18
protectorHeath Stewart8-May-04 20:18 
Create a typed DataSet. You can do this programmatically, but it's better and easier to use either the xsd.exe tool that ships with the .NET Framework SDK, or Visual Studio .NET. Right-click on your project or project folder and select Add New-<Add New Item. Select a "DataSet" from the list of choices and give it a name. Create your tables, fields, keys, and relationships. If you have a database connection in your Server Explorer, you can even drag and drop tables and views from it into the design surface for the DataSet. This is documented in the Visual Studio .NET Product documentation, but it's not hard to figure out. Just experiment.

Once you have a typed DataSet, you have the schema. The schema is what created the typed DataSet. This also gives you typed access to tables and columns, which is must faster than using indexes or names (names of columns and tables can be very slow for look-ups). Because the classes derive from DataSet, DataTable, etc., they have all the same functionality as their parent class but imply a schema.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Disconnected Datasets Pin
MrJJKoolJ9-May-04 6:44
MrJJKoolJ9-May-04 6:44 
GeneralRe: Disconnected Datasets Pin
Heath Stewart9-May-04 9:27
protectorHeath Stewart9-May-04 9:27 
GeneralDrawing 3D piechart(the 3D depth part) Pin
Alan Zhao8-May-04 9:07
Alan Zhao8-May-04 9:07 
Questiondataset data tostring??? Pin
gman448-May-04 9:07
gman448-May-04 9:07 
AnswerRe: dataset data tostring??? Pin
Heath Stewart8-May-04 20:14
protectorHeath Stewart8-May-04 20:14 
GeneralArrays of Structures in C# .net Beginner Pin
ProgrammerA8-May-04 8:34
ProgrammerA8-May-04 8:34 
GeneralRe: Arrays of Structures in C# .net Beginner Pin
Jeff Varszegi8-May-04 11:12
professionalJeff Varszegi8-May-04 11:12 
GeneralMessage Closed Pin
8-May-04 7:33
Oshada Athulathmudali8-May-04 7:33 
GeneralRe: Flickering Images Pin
Mazdak8-May-04 8:57
Mazdak8-May-04 8:57 
GeneralRe: Flickering Images Pin
Heath Stewart8-May-04 20:09
protectorHeath Stewart8-May-04 20:09 
GeneralXML Serialization Pin
Diego F.8-May-04 7:26
Diego F.8-May-04 7:26 
GeneralRe: XML Serialization Pin
Mazdak8-May-04 8:36
Mazdak8-May-04 8:36 
GeneralRe: XML Serialization Pin
Diego F.8-May-04 14:44
Diego F.8-May-04 14:44 
Generalaccessing a property through several classes Pin
cristina_tudor8-May-04 6:29
cristina_tudor8-May-04 6:29 
GeneralRe: accessing a property through several classes Pin
ian mariano8-May-04 6:35
ian mariano8-May-04 6:35 
GeneralRe: accessing a property through several classes Pin
Meysam Mahfouzi8-May-04 6:46
Meysam Mahfouzi8-May-04 6:46 
GeneralRe: accessing a property through several classes Pin
ian mariano8-May-04 7:23
ian mariano8-May-04 7:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.