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