Hébergeur de fichiers indépendant

Class1.cs

À propos du fichier

Type de fichier
Fichier CS de 3 Ko (text/plain)
Confidentialité
Fichier public, envoyé le 3 août 2013 à 22:16, depuis l'adresse IP 213.111.x.x (France)
Sécurité
Ne contient aucun Virus ou Malware connus - Dernière vérification: 9 heures
Statistiques
La présente page de téléchargement a été vue 764 fois depuis l'envoi du fichier
Page de téléchargement

Aperçu du fichier


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;
        }
    }
}



Partager le fichier Class1.cs sur le Web et les réseaux sociaux:


Télécharger le fichier Class1.cs


Télécharger Class1.cs