public PostgreSQLStorage(IOptions <PostgreStorageOptions> options, PostgreConnectionFactory connectionFactory, ILogger <PostgreSQLStorage> logger)
 {
     Options           = options.Value;
     ConnectionFactory = connectionFactory;
     Logger            = logger;
     if (Options.EnableDefer)
     {
         _deferFlushCollection = new AsyncCallbackDeferFlushCollection <IRequestInfo>(AddRequestInfoAsync, Options.DeferThreshold, Options.DeferTime);
     }
 }
 public PostgreSQLStorage(IOptions <PostgreStorageOptions> options, PostgreConnectionFactory connectionFactory, ILogger <PostgreSQLStorage> logger)
 {
     Options           = options.Value;
     ConnectionFactory = connectionFactory;
     if (!Options.TablePrefix.IsEmpty())
     {
         Prefix = Options.TablePrefix + ".";
     }
     Logger = logger;
     if (Options.EnableDefer)
     {
         _deferFlushCollection = new AsyncCallbackDeferFlushCollection <IRequestInfo, IRequestDetail>(AddRequestInfoAsync, Options.DeferThreshold, Options.DeferSecond);
     }
 }
        public PostgreSQLStorage(IOptions <PostgreStorageOptions> options, PostgreConnectionFactory connectionFactory, ILogger <PostgreSQLStorage> logger)

            : base(new BaseStorageOptions {
            DeferSecond      = options.Value.DeferSecond,
            DeferThreshold   = options.Value.DeferThreshold,
            ConnectionString = options.Value.ConnectionString,
            DataType         = FreeSql.DataType.PostgreSQL
        })
        {
            Options = options.Value;

            ConnectionFactory = connectionFactory;
            if (!Options.TablePrefix.IsEmpty())
            {
                Prefix = Options.TablePrefix + ".";
            }
            Logger = logger;
        }