Exemplo n.º 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();
            }
        }
Exemplo n.º 2
0
 public virtual void Initialize(IDbContextOptions options)
 {
     _relationalOptions = options.FindExtension <MySqlOptionsExtension>() ?? new MySqlOptionsExtension();
 }
Exemplo n.º 3
0
 public MySqlOptionsExtension([NotNull] MySqlOptionsExtension copyFrom)
     : base(copyFrom)
 {
 }