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