Skip to content

Request for EF.Functions.Like with numeric column support. #11089

@SPEMoorthy

Description

@SPEMoorthy

SQL Server's like operator is accepting comparison against Integer column, whereas EF.Functions.Like method is not accepting comparison with integer column.

             SELECT * FROM Tbl WHERE IntCol LIKE '%1%'  // Working in SQL Server
             p => EF.Functions.Like(p.IntCol,"%1%") //Not Working in EF Error	CS1503	Argument 2: cannot convert from 'int' to 'string'

Further technical details

EF Core version: 2.0.1
Database Provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions