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