Exemple #1
0
 /// <summary>
 /// Indicates to the default DataProvider that it should use a per-thread shared connection using the given connection string.
 /// </summary>
 /// <param name="connectionString">The connection string.</param>
 /// <param name="providerName">ColumnName of the provider.</param>
 public SharedDbConnectionScope(string connectionString, string providerName)
     : this(ProviderFactory.GetProvider(connectionString, providerName))
 {
 }
Exemple #2
0
 /// <summary>
 /// Indicates to the default DataProvider that it should use a per-thread shared connection.
 /// </summary>
 public SharedDbConnectionScope() : this(ProviderFactory.GetProvider())
 {
 }