How to get query statement from LINQ using WCF RIA Service


i have below code in silverlight application , want query statement [insert customer values ("new customer name")] from the wcf class insert method created, show below linq insertonsubmit(). anyway way can achieve that?  i understand can use datacontext.log = console.out to display statement. want statement as string , insert table keep log. action apply update , delete well. any advices? thanks in advance.

customer _obj = new db.customer(). db = new linqdatacontext(); _obj.name = "new customer name"; db.customers.insertonsubmit(_obj); db.customers.context.submitchanges();




hi,

there no way can sql query form wcf silverlight , can data queried.

you can try pass sql statement in wcf.

you can try this:

http://msdn.microsoft.com/en-us/library/ff422034(v=vs.91).aspx


best regards,


we trying better understand customer views on social support experience, participation in interview project appreciated if have time. helping make community forums great place.
click here participate survey.






Silverlight  >  Silverlight 5



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........