Please help me with my problem I'm trying to find a number in SQL Server example 1000 but this code gives me an error.
public IEnumerable<NCABal> FindByNCABal(Double Data)
{
var query = @"SELECT * FROM [dbo].[NCA_Balance] WHERE NCABalAmt LIKE '%'+'" + Data + "'+'%'";
return this._db.Query<NCABal>(query).ToList();
}
Error:
Implicit conversion from data type money to varchar is not allowed. Use the CONVERT function to run this query.
How can I solve this problem? Please help me.