You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.1 KiB

  1. using Learun.Util;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace Learun.Application.Base.SystemModule
  5. {
  6. /// <summary>
  7. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  8. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  9. /// 创 建:超级管理员
  10. /// 日 期:2017-12-19 12:03
  11. /// 描 述:系统数据初始化
  12. /// </summary>
  13. public class DatabaseInitBLL : DatabaseInitIBLL
  14. {
  15. private DatabaseInitService databaseInitService = new DatabaseInitService();
  16. /// <summary>
  17. /// 系统数据初始化
  18. /// <summary>
  19. /// <returns></returns>
  20. public void InitDatabase()
  21. {
  22. try
  23. {
  24. databaseInitService.InitDatabase();
  25. }
  26. catch (Exception ex)
  27. {
  28. if (ex is ExceptionEx)
  29. {
  30. throw;
  31. }
  32. else
  33. {
  34. throw ExceptionEx.ThrowBusinessException(ex);
  35. }
  36. }
  37. }
  38. }
  39. }