How is Dataadapter useful in ADO.NET?Dataadapters
are used to connect Dataset object to a set of command objects.
Dataadapters are used for two main purposes. They are listed below: To
fetch data from the database and display them in the datatables of dataset.
This is achieved using Fill method of dataadapter. There are four different types of Dataadapters. Their purpose and usage is mentioned below:
Dataadapter
has four different properties which controls database updates. The properties
are SelectCommand, UpdateCommand, InsertCommand and DeleteCommand. These
commands are used to read, update, add and delete records from a database
respectively.
|