Data Access has been discontinued. Please refer to this page for more information.

Updating Data

In this task, you will extend the code to enable you to update existing Car objects.

  1. Open the Default.aspx page in Source view.
  2. Select the OpenAccessLinqDataSourceCar and set the EnableUpdate property to True. This will enable the OpenAccessLinqDataSource control to automatically handle update operations. You could find more information, here.

    <telerik:OpenAccessLinqDataSource 
        ID="OpenAccessLinqDataSourceCar" 
        runat="server" EnableInsert="True" EnableUpdate="True"
        ContextTypeName="SofiaCarRental.Model.FluentModel" 
        ResourceSetName="Cars">
    </telerik:OpenAccessLinqDataSource>