Skip to content

SqlServer LIKE Command with dapper #470

@colinin

Description

@colinin

Use dapper to query statements with LIKE syntax. Parameterized queries cannot be the same as ordinary parameters. The problem code is here:

if (!string.IsNullOrEmpty(queryDto.Content)) where += " and content like '%@Content%'";

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions