示例#1
0
文件: Base.cs 项目: secretMoi/Wallon
        public bool TestConnection()
        {
            try
            {
                CreerCommande("select 1", false);

                Commande.Connection.Open();
                Commande.ExecuteScalar();
                Commande.Connection.Close();

                return(true);
            }
            catch (SqlException)
            {
                return(false);
            }
        }