How to see the generated SQL statement in Visual Studio?

raysefo

Well-known member
Joined
Feb 22, 2019
Messages
119
Programming Experience
10+
Hello,

I am trying to get the generated SQL statement in order to see the execution plan in SQL Server. Is there a way to get the SQL statement?

C#:
//Query GameBank database
var gameBankResult = await _unitOfWork.GameBankRepository.GetGamesAsync(g =>
                     g.productCode == requestDto.productCode && g.referenceId == Guid.Empty);
 
Top Bottom