Exemplo n.º 1
0
        ///// <summary>
        ///// 数据库连接的数据库名
        ///// </summary>
        ///// <value>The name of the database.</value>
        //public string DbName
        //{
        //    get
        //    {
        //        return _db.DataBaseName;

        //    }
        //}

        /// <summary>
        /// 创建数据库表
        /// </summary>
        /// <param name="tableName">Name of the table.</param>
        /// <returns>Result.</returns>
        /// <exception cref="System.Exception">创建表 + tableStr.TableName + 出错! + ex.Message</exception>
        public Result DropTable(string tableName)
        {
            try
            {
                return(_db.DropTable(tableName));
            }
            catch (Exception ex)
            {
                throw new Exception("删除表" + tableName + "出错!" + ex.Message);
            }
        }