Exemple #1
0
 /// <summary>
 /// 设置指定驱动Session会话为默认会话
 /// </summary>
 /// <param name="dbProvider"></param>
 public static void SetDefault(DbProvider dbProvider)
 {
     Default = new DbSession(dbProvider);
 }
Exemple #2
0
 /// <summary>
 /// 设置指定配制节名Session会话为默认会话
 /// </summary>
 /// <param name="connectName"></param>
 public static void SetDefault(string connectName)
 {
     Default = new DbSession(connectName);
 }