public static bool ExistsAndItsNotMe(int uniqueID, string personName)
{
Sqlite.Open();
dbcmd.CommandText = "SELECT uniqueID FROM " + Constants.PersonTable +
" WHERE LOWER(" + Constants.PersonTable + ".name) == LOWER(\"" + personName + "\")" +
" AND uniqueID != " + uniqueID ;
LogB.SQL(dbcmd.CommandText.ToString());
SqliteDataReader reader;
reader = dbcmd.ExecuteReader();
bool exists = new bool();
exists = false;
if (reader.Read()) {
exists = true;
//LogB.SQL("valor {0}", reader[0].ToString());
}
//LogB.SQL("exists = {0}", exists.ToString());
reader.Close();
Sqlite.Close();
return exists;
}