コード例 #1
0
        /// <summary>
        /// 根据配置返回存储器¬
        /// </summary>
        /// <param name="configuration">配置</param>
        /// <returns></returns>
        public static IDataFlow CreateFromOptions(IConfiguration configuration)
        {
            var options = new PostgreOptions(configuration);

            return(new PostgreSqlEntityStorage(options.Mode, options.ConnectionString)
            {
                UseTransaction = options.UseTransaction,
                IgnoreCase = options.IgnoreCase,
                RetryTimes = options.RetryTimes
            });
        }
コード例 #2
0
        /// <summary>
        /// 根据配置返回存储器¬
        /// </summary>
        /// <param name="configuration">配置</param>
        /// <returns></returns>
        public static IDataFlow CreateFromOptions(IConfiguration configuration)
        {
            var options = new PostgreOptions(configuration);

            return(new PostgreSqlEntityStorage(options.Mode, options.ConnectionString));
        }