Today, I have reviewed MOC of MCSD. Net Course 2389, and get some new taste, let's particle it:
Code example
Trans = cnnorthwind. begintransaction (_
Isolationlevel. serializable)
It can set isolationlevel to serializable, it's synchronous
==================================
When you fill a dataset, the dataadapter enforces constraints such as primary
Key uniqueness. To improve performance , Set the dataset Property
Enforceconstraints to false before you fill the dataset. This disables
Constraint checking while the data is loaded.
Adataset. enforceconstraints = false
==============
The following example creates a dataset containing a single table named
Customers. The table is filled by using a dataadapter named dacustomers.
The beginloaddata method is called Optimize Performance .
After the table has been filled, a DataGrid Control is bound to the table.
The DataGrid will display the customer information on the screen.
'Visual basic
Dim dscustomers as new dataset ()
Dscustomers. Tables. Add (New datatable ("MERs "))
Dscustomers. Tables (0). beginloaddata ()
Dacustomers. Fill (dscustomers, "MERs ")
Dscustomers. Tables (0). endloaddata ()
Datagrid1.datasource = dscustomers. Tables (0). defaultview
// Visual C #
Dataset dscustomers = new dataset ();
Dscustomers. Tables. Add (New datatable ("MERs "));
Dscustomers. Tables [0]. beginloaddata ();
Dacustomers. Fill (dscustomers, "customers ");
Dscustomers. Tables [0]. endloaddata ();
Datagrid1.datasource = dscustomers. Tables [0]. defaultview;