Use dapper to query statements with LIKE syntax. Parameterized queries cannot be the same as ordinary parameters. The problem code is here: https://github.com/dotnetcore/CAP/blob/1c43afb00eedf9996e129eca407721848d14968a/src/DotNetCore.CAP.SqlServer/IMonitoringApi.SqlServer.cs#L82