public static void DeleteCharacter(string Name)
{
File.Delete(@"C:\OldCODB\Users\Characters\" + Name + ".chr");
MySqlCommand Cmd = new MySqlCommand("UPDATE accounts SET EntityName = '' WHERE EntityName = '" + Name + "'", DatabaseConnection.Connection);
Cmd.ExecuteNonQuery();
}
Is the code. "The name 'DatabaseConnection' does not exist in the current context."
any help would be appreciated :D
{
File.Delete(@"C:\OldCODB\Users\Characters\" + Name + ".chr");
MySqlCommand Cmd = new MySqlCommand("UPDATE accounts SET EntityName = '' WHERE EntityName = '" + Name + "'", DatabaseConnection.Connection);
Cmd.ExecuteNonQuery();
}
Is the code. "The name 'DatabaseConnection' does not exist in the current context."
any help would be appreciated :D