Exemple #1
0
 /// <summary>
 /// 设置新的驱动
 /// </summary>
 /// <param name="connectName"></param>
 public void SetProvider(string connectName)
 {
     SetProvider(ProviderFactory.CreateDbProvider(connectName));
 }
Exemple #2
0
 /// <summary>
 ///  指定配制节名实例化一个Session会话
 /// </summary>
 /// <param name="connectName"></param>
 public DbSession(string connectName)
     : this(ProviderFactory.CreateDbProvider(connectName))
 {
 }