How to write back to database from Silverlight?
Posted
by Manoj
on Stack Overflow
See other posts from Stack Overflow
or by Manoj
Published on 2010-04-16T10:51:26Z
Indexed on
2010/04/16
11:33 UTC
Read the original article
Hit count: 190
linq-to-sql
|Silverlight
Hi,
I use LINQ to SQL to get data from a database and use a service contract to access it in Silverlight at the client side. I display the data in a DataGrid. Now how do I make sure that any changes in the datagrid is written back to the database?
EDIT:
This is the example code I implemented: http://www.silverlight.net/learn/tutorials/sqldatagrid-cs/
Here I wanted any change in the datagrid reflected back in the database.
The SubmitChanges function works in the DataContext object which is:
public partial class DataClasses1DataContext : System.Data.Linq.DataContext
But this is not exposed in the contract and so not visible in the client side code.
© Stack Overflow or respective owner