/// <summary>
        /// 配置使用SqlServer
        /// </summary>
        /// <param name="configuration"></param>
        /// <param name="nameOrConnectionString"></param>
        /// <returns></returns>
        public static IGlobalConfiguration <SqlServerStorage> UseSqlServer(
            this IGlobalConfiguration configuration,
            string nameOrConnectionString,
            SqlServerStorageOptions options)
        {
            Error.ThrowIfNull(configuration, nameof(configuration));
            Error.ThrowIfNull(nameOrConnectionString, nameof(nameOrConnectionString));
            Error.ThrowIfNull(options, nameof(options));

            var storage = new SqlServerStorage(nameOrConnectionString, options);

            return(configuration.UseStorage(storage));
        }
        public SqlServerStorage(string nameOrConnectionString, SqlServerStorageOptions options)
        {
            Error.ThrowIfNull(nameOrConnectionString, nameof(nameOrConnectionString));
            Error.ThrowIfNull(options, nameof(options));

            _connectionString = GetConnectionString(nameOrConnectionString);
            _options          = options;

            //初始化数据库内容
            //using (var connection = CreateAndOpenConnection())
            //{
            //    SqlServerObjectsInstaller.Install(connection, "");
            //}
        }