How to see the generated SQL statement in Visual Studio?

raysefo

Well-known member
Joined
Feb 22, 2019
Messages
362
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);
 

Latest posts

Back
Top Bottom