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
Post a Comment