Deleting Data
In this task, you will extend the code to enable you to delete existing Car objects.
- Open the Default.aspx page in Design view.
-
Select the OpenAccessLinqDataSourceCar and set the EnableDelete property to True. This will enable the OpenAccessLinqDataSource control to automatically handle delete operations. You could find more information, here.
<telerik:OpenAccessLinqDataSource ID="OpenAccessLinqDataSourceCar" runat="server" EnableInsert="True" EnableUpdate="True" EnableDelete="True" ContextTypeName="SofiaCarRental.Model.FluentModel" ResourceSetName="Cars"> </telerik:OpenAccessLinqDataSource>