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.

37 lines
1012 B

  1. using OT.COM.GuardsUnitTest;
  2. using OT.COM.LogisticsUtil;
  3. using SoldierData;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. namespace SoldierDataEntity
  9. {
  10. public partial class CustomizeDBMgr
  11. {
  12. [IgnoreUnitTest("This is GetMasterDBInfo UnitTest.", "Hercules")]
  13. public string UnitTest_GetMasterDBInfo()
  14. {
  15. string sMsg = null;
  16. try
  17. {
  18. do
  19. {
  20. if (this.GetTableInfo(typeof(otb_sys_employees), CustomizeDBMgr.MSSQLConnectString01) == null)
  21. {
  22. sMsg = string.Format("MasterDBInfo create fail. Check '{0}' exist in web.config or not", CustomizeDBMgr.MSSQLConnectString01);
  23. }
  24. }
  25. while (false);
  26. }
  27. catch (Exception ex)
  28. {
  29. sMsg = new Util().GetLastExceptionMsg(ex);
  30. }
  31. return sMsg;
  32. }
  33. }
  34. }