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