Tutorials
VB.NET 2005In this tutorial you will learn about The ADO .NET Object Model, Data Providers and Their Objects and the Dataset Objects
ADO .NET renders very good support for working with disconnected data. ADO .NET 2.0 comes with additional features that enhance the performance of common database tasks. The data source window provides a centralized window for creating and configuring related objects required to access a date source. Smart tags added to the controls provide fast access to common development tasks. However all the functionalities of the ADO .NET 1.1 have also not been discarded.
.
.
.
ADO .NET is offers a highly sophisticated system to support data centric application development. The data binding in Windows Forms enables users access data from databases as well as other structures like arrays and collections. Users can bind to a wide variety of structures, from simple arrays to complex data rows and views. However, any bindable structure must support IList interface. Any object that supports IList should be capable of being bound. We shall see some of the objects that provide data.
DataSets in ADO .NET are objects that store data in a memory cache, allowing access to the data even with the application disconnected from the databases. The structure of a System.Data.DataSet is similar to that of a relational database. It is organized in a hierarchical object mode of tables, rows, columns, constraints, and relationships.
A DataSet can be typed or untyped. Typed DataSets derive its table and column structure from a schema ( .XSD) file and is easier to program. Either a typed or untyped dataset can be used in applications. ADO .NET gives better support to typed datasets. A DataSet is located in System.Data NameSpace. DataSets are memory structures that do not contain any data by default. DataSets will have to be filled with data. This can be done in several ways.
1) If the DataSet was created using design-time tools, you can call the fill method of a TableAdapter. TableAdapters are created with a default Fill method but you can change the name.
2) By calling the Fill method of DataAdapter
3) Manually populate the DataSets by creating DataRow objects and call the AddNew method
4) Read an XML Document or stream into the dataset.
5) Copy the contents of one DataSet with another.
6) Copy the contents of one DataTable into a DataSet
A DataSet can store not only the data but also information about the data such as original, modified, inserted and deleted. Update of the underlying data-store is also possible. This can be done by calling the Update method of the TableDataAdapter or DataAdapter
A DataSet is typically a disconnected data-store. It does not support the idea of a current record. All the records in the DataSet are available at any time. You can access any row at any time directly. If the data is bound to one or more controls you can use the BindingNavigator to traverse the records. Some of the features of the DataSets that are based on XML.
1. The structure of a DataSet can be defined in an XML schema
2. You can generate a typed DataSet class using the schema information
3. You can read an XML document or stream into a DataSet using the ReadXml file method of DataSet and write to an XML file by calling the WriteXML method of DataSet.
4. You can create an XML view of the contents of a DataSet or DataTable.
Within a DataSet, table and column names are by default case insensitive. In contrast XML documents are case sensitive. The results of a data filter operation may return different data depending up on how the data is interpreted within the DataSet. You can have sufficient control over this by setting the DataSets CaseSensitive property. All tables in the dataset inherit the value of this property by default. This property can be overridden for each individual table by setting the tables CaseSensitive property.
A DataSet is not aware of any or all data relationships that exist in the database. The user can create DataRealtion objects that describe the relations between the tables in the DataSet. Objects of type UniqueConstraint, ForeignKeyConstraint are used to implement constraint.
|
Hi I am looking for a way to create a user in sql who can just update and view the information but cannot delete the data.<br /> Can any one help me with this? |
|
How the DataSet get the data from the Data Source? How DataSet process the data? How the Data Set update the data to the Data Source? Please send the info to zaki_bit@hotmail.com |
|
Hey i Have a problem in a datagrid control can anybody help me Plz consider that I need to store the value of one datagrid from datatable1 (plz mind cell value ) into my database table2. Not all field So, how can call a cell index of an datagrid (To get the cell value of datagrid) Plz i need help |
|
WHO CAN HELP IN VISUAL STUDIO 2005 I HAVE SOME PROBLEM IN MY PROJECTS PLZ WHO KNOW ABOUT VB.NET 2005 PROFEESIONAL I AM WAITING FOR HER MY EMAIL ADDRESS GREAT_KHANSAY@YAHOO.COM |
| dataGrid1[rowindex,colindex] will get the object of that cell |
| How can you tell it's been improved - It's now impossible to find good information and use these tools. It used to be simple... |
|
I want to nkow how to manipulate data in asp.net and I want to get good lesson with good Example using asp.net code.Please reply to me. Thank you very much.... |
| is it possible to place only select SQL query in click event of button and connectivity in another class if so how can we do it? |
| I am using object data source in N-tier architecture, how can I pass a result of query having joins of more than 3 to 4 table, and each time query have different tables, I want such a solution that I dont have to write separate class to store a result of a particular query in particular object, also I have to pass result in object to other layer, plz reply fast. |