Example #1
0
 /// <summary>
 /// 根据数据库连接信息创建连接操作对象
 /// </summary>
 /// <param name="settings"></param>
 /// <returns></returns>
 public static BaseDbActionService GetDBByConnectionStringSettings(ConnectionStringSettings settings)
 {
     return(CreateNewDbAction(DataBaseFactory.Factory(settings)));
 }
Example #2
0
 /// <summary>
 /// 获取当前数据库连接操作对象
 /// </summary>
 /// <returns></returns>
 public static BaseDbActionService CurrentDB()
 {
     return(CreateNewDbAction(DataBaseFactory.Factory(AppConfigManage.CurrentDb())));
 }