Nos partenaires et nous-mêmes utilisons différentes technologies, telles que les cookies, pour personnaliser les contenus et les publicités, proposer des fonctionnalités sur les réseaux sociaux et analyser le trafic. Merci de cliquer sur le bouton ci-dessous pour donner votre accord. Vous pouvez changer d’avis et modifier vos choix à tout moment. Informations RGPD
namespace Phoenix.Storage { using MySql.Data.MySqlClient; using System; using System.Data; using System.Xml; internal class Class1 : IDisposable { private Class2 class2_0; private MySqlCommand mySqlCommand_0; private MySqlConnection mySqlConnection_0; public Class1(Class2 _Manager) { this.class2_0 = _Manager; this.mySqlConnection_0 = new MySqlConnection(_Manager.String_0); this.mySqlCommand_0 = this.mySqlConnection_0.CreateCommand(); this.mySqlConnection_0.Open(); } public void Dispose() { this.mySqlConnection_0.Close(); this.mySqlCommand_0.Dispose(); this.mySqlConnection_0.Dispose(); } public void method_0(string string_0, object object_0) { this.mySqlCommand_0.Parameters.AddWithValue(string_0, object_0); } public void method_1(string string_0) { this.mySqlCommand_0.CommandText = string_0; this.mySqlCommand_0.ExecuteScalar(); this.mySqlCommand_0.CommandText = null; } public DataSet method_2(string string_0) { DataSet dataSet = new DataSet(); this.mySqlCommand_0.CommandText = string_0; using (MySqlDataAdapter adapter = new MySqlDataAdapter(this.mySqlCommand_0)) { adapter.Fill(dataSet); } this.mySqlCommand_0.CommandText = null; return dataSet; } public DataTable method_3(string string_0) { DataTable dataTable = new DataTable(); this.mySqlCommand_0.CommandText = string_0; using (MySqlDataAdapter adapter = new MySqlDataAdapter(this.mySqlCommand_0)) { adapter.Fill(dataTable); } this.mySqlCommand_0.CommandText = null; return dataTable; } public DataRow method_4(string string_0) { DataTable table = this.method_3(string_0); if ((table != null) ? (table.Rows.Count <= 0) : true) { return null; } return table.Rows[0]; } public string method_5(string string_0) { this.mySqlCommand_0.CommandText = string_0; string str = this.mySqlCommand_0.ExecuteScalar().ToString(); this.mySqlCommand_0.CommandText = null; return str; } public int method_6(string string_0) { this.mySqlCommand_0.CommandText = string_0; int num = int.Parse(this.mySqlCommand_0.ExecuteScalar().ToString()); this.mySqlCommand_0.CommandText = null; return num; } public uint method_7(string string_0) { this.mySqlCommand_0.CommandText = string_0; uint num = (uint) this.mySqlCommand_0.ExecuteScalar(); this.mySqlCommand_0.CommandText = null; return num; } } }