Exemplo n.º 1
0
        public string ExecuteOne(string strSql)
        {
            switch (_dbType)
            {
            case DatabaseType.Sqlserver:
                return(SqlServerUtil.ExecuteOne(DbConnectionString, strSql));

            //sunjian 2020/2/13 增加MySql的ExecuteOne方法
            case DatabaseType.Mysql:
                return(MySqlUtil.ExecuteOne(DbConnectionString, strSql));

            default:
                return("");
            }
        }