I can get my "user" object that has a "Login and Password" inside it, and when I run the function through my ORM, I get the following error message:
{"42883: operator does not exist: @ character varying"}.
Could anyone tell me what might be causing such an error? Here 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();
}