示例#1
0
        public virtual void Initialize(IDbContextOptions options)
        {
            _relationalOptions = options.FindExtension <MySqlOptionsExtension>() ?? new MySqlOptionsExtension();

            if (_relationalOptions.ExecutionStrategyFactory != null)
            {
                _mySqlRetryNoDependendiciesExecutionStrategy
                    = new MySqlRetryNoDependendiciesExecutionStrategy((MySqlRetryingExecutionStrategy)_relationalOptions.ExecutionStrategyFactory(null));
            }
            else
            {
                _mySqlRetryNoDependendiciesExecutionStrategy
                    = new MySqlRetryNoDependendiciesExecutionStrategy();
            }
        }
示例#2
0
 public virtual void Initialize(IDbContextOptions options)
 {
     _relationalOptions = options.FindExtension <MySqlOptionsExtension>() ?? new MySqlOptionsExtension();
 }
示例#3
0
 public MySqlOptionsExtension([NotNull] MySqlOptionsExtension copyFrom)
     : base(copyFrom)
 {
 }