/// <summary>
        /// 进行用于<typeparamref name="TDbContext"/>的预配置
        /// </summary>
        /// <typeparam name="TDbContext"></typeparam>
        /// <param name="options"></param>
        /// <param name="context"></param>
        private static void PreConfigure <TDbContext>(
            XqDbContextOptions options,
            XqDbContextConfigurationContext <TDbContext> context)
            where TDbContext : XqDbContext <TDbContext>
        {
            foreach (var defaultPreConfigureAction in options.DefaultPreConfigureActions)
            {
                defaultPreConfigureAction.Invoke(context);
            }

            var preConfigureActions = options.PreConfigureActions.GetOrDefault(typeof(TDbContext));

            if (!preConfigureActions.IsNullOrEmpty())
            {
                foreach (var preConfigureAction in preConfigureActions)
                {
                    ((Action <XqDbContextConfigurationContext <TDbContext> >)preConfigureAction).Invoke(context);
                }
            }
        }
        /// <summary>
        /// 进行用于<typeparamref name="TDbContext"/>的配置
        /// </summary>
        /// <typeparam name="TDbContext"></typeparam>
        /// <param name="options"></param>
        /// <param name="context"></param>
        private static void Configure <TDbContext>(
            XqDbContextOptions options,
            XqDbContextConfigurationContext <TDbContext> context)
            where TDbContext : XqDbContext <TDbContext>
        {
            var configureAction = options.ConfigureActions.GetOrDefault(typeof(TDbContext));

            if (configureAction != null)
            {
                ((Action <XqDbContextConfigurationContext <TDbContext> >)configureAction).Invoke(context);
            }
            else if (options.DefaultConfigureAction != null)
            {
                options.DefaultConfigureAction.Invoke(context);
            }
            else
            {
                throw new XqException(
                          $"No configuration found for {typeof(DbContext).AssemblyQualifiedName}! Use services.Configure<XqDbContextOptions>(...) to configure it.");
            }
        }