Silverlight-Running SQL scripts
WPF
1
Posts
1
Posters
0
Views
1
Watching
-
Hello forum, I’ve created a Silverlight application that includes a ADO Entity data model and DomainService class. In the main page the context is created MyDomainContext context = new MyDomainContext(); dataGrid1.ItemsSource = dp1; context.Load(context.GetDBTablesQuery()); The default configuration (in MyDomainServices.cs)works fine. For example, the following code populates a datagrid. public IQueryable GetDBTables() { return this.ObjectContext.DBTables; } My question is: How do I run a simple script (e.g. Select col1, col2 from DBTable where col1='12') Many thanks in advance