Goodnight I would like you to help me I am making a query with Linq of the programming language c # since I am doing a validation for a user login my code is this:
public class D_Usuario
{
private DataModel.DataModelDataContext contexto = new DataModel.DataModelDataContext();
private DataModel.Usuario objUsuario = new DataModel.Usuario();
public bool ValidarUsuario(string usuario,string pass)
{
int validar=(from p in contexto.Usuario
where (p.Usuario1==usuario && (p.Pass==pass))
select p);
}
}
This is the error of the image:
You can not implicitly convert the IQueryable type to int .