|This post discusses to edit the displayed data in Silverlight page and save the changes back to database. Insert, Update and Delete operations can be done using domain service object context. All the changes you made to this object are collectively submitted to the database when you call the SubmitChanges method.|
This post requires to create a Silverlight Business Application in Visual Studio 2010.
1. Open the Mainpage.xaml , Add the following XAML code to see the Save changes and Reject changes button
2. Add the code for button click event handlers as shown below
3. Open the Metadata file in server project and add the editable attribute to the Id and modified date as shown below
4. When you run the application you should be able to see the below screen
|Share this post :|