Skip to content

Parameters missing? #2203

@julioffigueiredo

Description

@julioffigueiredo

Check your library version, and try updating
Dapper V 2.1.72
Microsoft.Data.SqlClient 7.0.1

Describe the bug

            var parameters = new DynamicParameters();
            parameters.Add("APP_COD", newData.CodAplicativo, DbType.Int64);

            var appExiste = await dbConnection.QueryFirstOrDefaultAsync<int>(
                sql: "select count(*) from CAD.TBL_APLICACAO APP where (APP.APP_COD = @APP_COD)",
                param: parameters);

Give me the warning:

Parameters are being supplied, but no parameters were detected in the command

or in others like this

Parameters are being supplied, but no parameters were detected in the command (https://aot.dapperlib.dev/rules/DAP018)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions