FromProviderName() 공개 정적인 메소드

public static FromProviderName ( string providerName ) : DbConfig
providerName string
리턴 DbConfig
예제 #1
0
 /// <summary>
 /// Instantiate Db with connectionString and DbProviderName
 /// </summary>
 /// <param name="connectionString">The connection string</param>
 /// <param name="providerName">The ADO .Net Provider name. When not specified,
 /// the default value is used (see DefaultProviderName)</param>
 public Db(string connectionString, string providerName)
     : this(connectionString, DbConfig.FromProviderName(providerName), DbProviderFactories.GetFactory(providerName))
 {
 }
예제 #2
0
파일: Db.cs 프로젝트: Shulyakovskiy/yadal
 /// <summary>
 /// Instantiate Db with connectionString and DbProviderName
 /// </summary>
 /// <param name="connectionString">The connection string</param>
 /// <param name="providerName">The ADO .Net Provider name. When not specified,
 /// the default value is used (see DefaultProviderName)</param>
 public Db(string connectionString, string providerName)
     : this(connectionString, DbConfig.FromProviderName(providerName))
 {
 }