I want to get the translated Linq query programmatically and do some stuff with that Sql syntax.
Suppose this is my code:
public class MyApiController:ApiController
{
public IQueryable<object> Get()
{
var objs=Context.Objexts.Where(m=>m.Id>10);
return objs;
}
}
I want to find and get the Sql syntax like:
SELECT * FROM dbo.Objexts where Id > 10