How can I do an if checking if the data in a column in the DataBase table is True or False?
For example:
using (SqlCommand cmd = new SqlCommand($"SELECT LoginID,Award FROM Sys_Usuarios_Award WHERE LoginID={login.LoginId} and Award='true ou false'", connection))
What I have in mind:
if (Award == True){
Console.WriteLine("True");
}else{
Console.WriteLine("False");
}
Award is the column I got in the SQLCommand. In short I wanted to do an if with the bit data of a column but I do not know how to do it.