Inserting and Updating Data

In this task, you will edit some data and save it to the DataBase.

  To save changes made to objects
  1. In the Toolbox, expand Common Controls, drag the Button control to the AspectizeDALDemo form designer, change the name of the control to btnSave, and change the Text value to Save.

  2. In the AspectizeDALDemo form designer, double-click the btnSave control.

    This creates the btnSave_Click event handler method.

  3. Paste the following code that saves object changes to the database:

     

          dm.SaveTransactional();

Run the Project. 
Edit some data with the DataGrid. 
Click the Save button. Your Data is changed to the DataBase.

Back to QuickStart HomePage