I am using Oracle ODAC for EntityFramework. I am trying to develop a sample silverlight application using entityframework. I have add my domainservice through which I am publishing my entities. I am UI’s code behind file. I have written the following code.
var threemonthsold = DateTime.Now.AddMonths(-3);
var query = serverContext.GetSR_MERGED_DATAQuery().Where(t => t.SR_DATE_RECD > threemonthsold);
var regionLoadOp = serverContext.Load(query);
dataGrid.ItemsSource = regionLoadOp.Entities;
I want to find out what query has been sent to oracle. As the operation is getting timedout the application is crashing. Looks like the query is taking long time. If I can find out the query I can run it directly on oracle and find out how long it is taking there.
Any help much appreciated.
Thanks
Found the answer for this question in the following forum.: