Get underlying linq query for FirstOrDefault with Entity Framework 5 (Code First) -


i can log underlying query of linq query using tostring() method.

string raw = query.where(..whatever..).tostring(); 

i need exact underlying query firstordefault() method

query.firstordefault().tostring() 

because bad performance query , want analyze it. here tostring() method returns class name.

is there possibility underlying query?


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -