Click here to Skip to main content
15,918,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,,

I want to know about usage of the dataset and

C#
public DataSet getTestList (string procedurename);
here data set used as some type what it means I didn't understand?
Please anybody.. help me
Posted
Updated 13-Jul-12 23:03pm
v2
Comments
Sebastian T Xavier 14-Jul-12 5:03am    
Its is pretty interesting that, you didn't understand this....
Kenneth Haugland 14-Jul-12 5:04am    
Im having a hard time to figure out what you actually are asking about. Could you give some code, or clearify the example ?

Hi,

Hope you are not afraid of the search engine called google!!!!!!

The ADO.NET DataSet contains DataTableCollection and their DataRelationCollection . It represents a complete set of data including the tables that contain, order, and constrain the data, as well as the relationships between the tables.

We can use Dataset in combination with DataAdapter Class . Build and fill each DataTable in a DataSet with data from a data source using a DataAdapter. The DataSet object offers a disconnected data source architecture. The Dataset can work with the data without knowing the source of the data coming from. That is , the Dataset can work with a disconnected mode from its Data Source . It gives a better advantage over DataReader , because the DataReader is working only with the connection oriented Data Sources.

The Dataset contains the copy of the data we requested. The Dataset contains more than one Table at a time. We can set up Data Relations between these tables within the DataSet. The data set may comprise data for one or more members, corresponding to the number of rows.

The DataAdapter Object allows us to populate DataTables in a DataSet. We can use Fill method of the DataAdapter for populating data in a Dataset. The DataSet can be filled either from a data source or dynamically. A DataSet can be saved to an XML file and then loaded back into memory very easily. A DataSet can read and write data and schema as XML documents. The data and schema can then be transported across HTTP and used by any application, on any platform that is XML-enabled.

Here are some useful links

http://csharp.net-informations.com/dataset/csharp-dataset-sqlserver.htm[^]

http://www.dotnetperls.com/dataset[^]

http://msdn.microsoft.com/en-us/library/system.data.dataset(v=vs.71).aspx[^]

C#
public DataSet getTestList (string procedurename);

In the abovecode , You are tying to call a method called getTestList with a string type input parameter and the return type is Dataset.

Hope you are clear!!!...

Regards
Sebastian
 
Share this answer
 
v2
See the documentation on MSDN[^] for details of all .NET classes. You can also try a search of the CodeProject Articles[^] for samples.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900