Salam.o.alaikum,
I am developing an Silverlight application, i have connected to my database through a WCF Data Service.. I can succeffuly get a table using
var query1 = (from s in catx.Traders where s.BranchCode == selectedBranchCode select s) ;
var dquery1 = (query1) as DataServiceQuery<CatsMainService.Trader> ;
dquery1.BeginExecute(AccountsLoaded, dquery1);
i want to get a single column of this table... so i tried
var query1 = (from s in catx.Traders where s.BranchCode == selectedBranchCode select s.Accounts) ;
var dquery1 = (query1) as DataServiceQuery<CatsMainService.Trader> ;
dquery1.BeginExecute(AccountsLoaded, dquery1);
'Accounts' is my column name...
I am getting nullReferenceException at BeginExecute() because query1 is not being translated.. it says
"{Error translating Linq expression to URI: Can only specify query options (orderby, where, take, skip) after last navigation.}"
I googled... and tried this thing with many other queries... but had the same exception... kindly correct me... where i m mistaking...
Thanks