public void Create(Tasks t) { cmd.Connection = con.Connect(); cmd.CommandText = "INSERT INTO Tasks(tarefa,dataUtc,checked)" + "VALUES(@tarefa,@dataUtc,@Checked)"; cmd.Parameters.AddWithValue("@tarefa", t.tarefa); cmd.Parameters.AddWithValue("@dataUtc", t.dataUtc); cmd.Parameters.AddWithValue("@Checked", t.Checked); cmd.ExecuteNonQuery(); con.Desconnect(); }