Silverlight Sample (Data Abstract)
From RemObjects Wiki
This is a Data Abstract for .NET Samples topic
Feel free to add your notes to this topic below.
Contents |
Purpose
This sample shows how to use the RemObjects SDK and Data Abstract Silverlight libraries, to create a full featured data aware Silverlight application.

This application uses DA LINQ for obtaining and updating data.
Also, this sample provides good examples of using asynchronous methods for calling service methods and obtaining results.
Please ensure that your project has the correct references to these assemblies.
Examine the code
- Look at the selecting methods in the "Loading" region. You can find asynchronous calls for fetching data, using the Linq Remote Data Adapter there:
var q = (from x in linqRemoteDataAdapter.GetTable<Clients>() select x); IQueryable[] Queries = new IQueryable[] { q }; linqRemoteDataAdapter.BeginExecute( Queries, delegate(IAsyncResult ar) { linqRemoteDataAdapter.EndExecute(ar); Dispatcher.BeginInvoke(new ProcessSelectClientsResultCb(ProcessSelectClientsResult), q.ToList<Clients>()); }, null);
- Look at the "Updating" region to see how changed data can be updated. After each change in the data, the modified row is updated:
linqRemoteDataAdapter.UpdateRow(sender as Clients);
When all changes have to be changed, the asynchronous call for ApplyChanges method is performed:
linqRemoteDataAdapter.BeginApplyChanges( delegate(IAsyncResult ar) { linqRemoteDataAdapter.EndApplyChanges(ar); }, null);
Getting started
- Run the Sample Server.
- Run the Silverlight Sample (set Default.aspx or Default.html as a start page.)
- Try to load data.
- Try to change some records in the Clients table.
- Apply changes to the server, using the Update button.
Editions and Languages
- Data Abstract for .NET — available C# and Delphi Prism
Note: because Silverlight support is available in Visual Studio 2008 and above only, it does not ship in the version for Visual Studio 2005.
Concepts Covered
See Also
Product: RemObjects Data Abstract
Available Editions: Data Abstract for .NET, Delphi and Xcode
Glossary — Architecture — Articles — Features — Library — Samples