コード例 #1
0
 public static void TryDm()
 {
     if (!IsTryDm)
     {
         try
         {
             DmProvider db   = new DmProvider();
             var        conn = db.GetAdapter();
             IsTryDm = true;
         }
         catch (Exception ex)
         {
             throw new Exception("你需要引用DmProvider.dll,在https://github.com/sunkaixuan/SqlSugar 源码里面下载");
         }
     }
 }
コード例 #2
0
 public static void TryDm()
 {
     if (!IsTryDm)
     {
         try
         {
             DmProvider db   = new DmProvider();
             var        conn = db.GetAdapter();
             IsTryDm = true;
         }
         catch (Exception ex)
         {
             var message = "需要引用DmProvider.dll,Github搜索sqlsugar源码里面有";
             throw new Exception(message);
         }
     }
 }
コード例 #3
0
 public static void TryDm()
 {
     if (!IsTryDm)
     {
         try
         {
             DmProvider db   = new DmProvider();
             var        conn = db.GetAdapter();
             IsTryDm = true;
         }
         catch
         {
             var message = ErrorMessage.GetThrowMessage(
                 "You need to refer to DmProvider",
                 "你需要引用 DmProvider");
             throw new Exception(message);
         }
     }
 }