How to view the queries it generates

_efContext.Database.Log = Console.WriteLine;

efContext.TableName.FirstOrDefault(x => x.y == y);