I want to get the translated Linq query programmatically and do some stuff with that Sql syntax.
Suppose this is my code:
public class MyApiControlle
You can call the ToString() method on objs. This will result in a call to the ToTraceString method that returns the executed SQL:
ToString()
objs
ToTraceString
string sql = objs.ToString();