1
I can capture my "user" object that has inside of itself a "Login and a Password" and, when executing the function by my ORM, I catch the following error message:
{"42883: operator does not exist: @Character Varying"}.
Would anyone know what could be causing such a mistake? Below is the function to execute the query..
public Usuario Login(Usuario user)
{
return this._db.Query<Usuario>("SELECT nome, login, senha FROM usuario WHERE login = @Login and senha = @Senha", new { user }).FirstOrDefault();
}
And the parameters, you’re passing where?
– Rovann Linhalis