/// <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 }); }
/// <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)); }