internal static void TryOracle()
 {
     if (!IsTryOracle)
     {
         try
         {
             OracleProvider db   = new OracleProvider();
             var            conn = db.GetAdapter();
             IsTryOracle = true;
         }
         catch
         {
             var message = ErrorMessage.GetThrowMessage(
                 "You need to refer to Oracle.ManagedDataAccess.dll",
                 "需要引用ManagedDataAccess.dll 未安装或者版本冲突, 按下面步骤操作即可 1、从Nuget卸载所有项目的ManagedDataAccess.dll和SqlSugar,用Nuget重新安装即可,如果还报错在最上层 WBE层 用NUGET安装,详细教程:https://www.donet5.com/Doc/8/1154");
             throw new Exception(message);
         }
     }
 }
Esempio n. 2
0
 internal static void TryOracle()
 {
     if (!IsTryOracle)
     {
         try
         {
             OracleProvider db   = new OracleProvider();
             var            conn = db.GetAdapter();
             IsTryOracle = true;
         }
         catch
         {
             var message = ErrorMessage.GetThrowMessage(
                 "You need to refer to Oracle.ManagedDataAccess.dll",
                 "需要引用ManagedDataAccess.dll 未安装或者版本冲突, 按下面步骤操作即可 1、从Nuget卸载所有项目的ManagedDataAccess.dll和SqlSugar,检查引用中是否还存在,存在直接删掉引用,然后Nuget重新安装即可");
             throw new Exception(message);
         }
     }
 }
 internal static void TryOracle()
 {
     if (!IsTryOracle)
     {
         try
         {
             OracleProvider db   = new OracleProvider();
             var            conn = db.GetAdapter();
             IsTryOracle = true;
         }
         catch
         {
             var message = ErrorMessage.GetThrowMessage(
                 "You need to refer to Oracle.ManagedDataAccess.dll",
                 "需要引用ManagedDataAccess.dll,请在Nuget安装最新稳定版本,如果有版本兼容问题请先删除原有引用");
             throw new Exception(message);
         }
     }
 }
Esempio n. 4
0
 internal static void TryOracle()
 {
     if (!IsTryOracle)
     {
         try
         {
             OracleProvider db   = new OracleProvider();
             var            conn = db.GetAdapter();
             IsTryOracle = true;
         }
         catch
         {
             var message = ErrorMessage.GetThrowMessage(
                 "You need to refer to Oracle.ManagedDataAccess.Core",
                 "你需要引用 Oracle.ManagedDataAccess.Core");
             throw new Exception(message);
         }
     }
 }