The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Silverlight Tutorial: Creating a data centric Web Application with DataGrid, LINQ, and WCF Web Service
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.
JonPosted Aug 26, 2010, 10:50 PM
I have copied and pasted your code from step 11 and I still can't get the service recognized. Here is the code: namespace WcfSqlDemo.Web { public class DemoService { // Return the list of valid data [OperationContract] public List <DemoTable> GetRows() { DataClasses1DataContext db = new DataClasses1DataContext(); var selected_rows = from rows in db.DemoTables select rows; return selected_rows.ToList(); } // Insert a new data into the database [OperationContract] public void InsertData(string testItem1, string testItem2) { DataClasses1DataContext db = new DataClasses1DataContext(); DemoTable row = new DemoTable { Key = Guid.NewGuid(), TestItem1 = testItem1, TestItem2 = testItem2 }; db.DemoTables.InsertOnSubmit(row); db.SubmitChanges(); } } }