public MySqlOptions()
 {
     _lazyConnectionSettings = new Lazy <MySqlConnectionSettings>(() =>
     {
         if (_relationalOptions.Connection != null)
         {
             return(MySqlConnectionSettings.GetSettings(_relationalOptions.Connection));
         }
         return(MySqlConnectionSettings.GetSettings(_relationalOptions.ConnectionString));
     });
 }
Esempio n. 2
0
 public MySqlOptions()
 {
     _lazyConnectionSettings = new Lazy <MySqlConnectionSettings>(() =>
     {
         if (_relationalOptions.Connection != null)
         {
             return(MySqlConnectionSettings.GetSettings(_relationalOptions.Connection));
         }
         return(MySqlConnectionSettings.GetSettings(_relationalOptions.ConnectionString));
     }, LazyThreadSafetyMode.PublicationOnly);
 }
Esempio n. 3
0
 public MySqlOptions()
 {
     _lazyConnectionSettings = new Lazy <MySqlConnectionSettings>(() =>
     {
         if (_relationalOptions.Connection != null)
         {
             return(MySqlConnectionSettings.GetSettings(_relationalOptions.Connection, _mySqlRetryNoDependendiciesExecutionStrategy));
         }
         return(MySqlConnectionSettings.GetSettings(_relationalOptions.ConnectionString, _mySqlRetryNoDependendiciesExecutionStrategy));
     });
 }