Is there any way to in .NET to see what LINQ query against database we are firing? For eg. I am wring a query in LINQ and I want to see that what SQL query is firing to communic
You can use the Log property of DataContext object. Also, it depends on the type of application you are using.
For Web Application:-
db.Log = Response.Output;
For Console Application:-
db.Log = Console.Out;
Apart from this you can also use the GetCommand method of DataContext
class. Sql Server Profiler
is again an obvious option.