diff --git a/src/API/Properties/AssemblyInfo.cs b/src/API/Properties/AssemblyInfo.cs index 3cde8c74..ed7e3792 100644 --- a/src/API/Properties/AssemblyInfo.cs +++ b/src/API/Properties/AssemblyInfo.cs @@ -11,5 +11,5 @@ [assembly:ComVisible(false)] [assembly: AssemblyVersion("3.5.2.15")] -[assembly: AssemblyFileVersion("3.5.2.98")] -[assembly: AssemblyInformationalVersion("3.5.2.98")] +[assembly: AssemblyFileVersion("3.5.2.99")] +[assembly: AssemblyInformationalVersion("3.5.2.99")] diff --git a/src/API/SQLiteScripting/Repositories/SQLiteRepository.cs b/src/API/SQLiteScripting/Repositories/SQLiteRepository.cs index a8933c17..d0964adc 100644 --- a/src/API/SQLiteScripting/Repositories/SQLiteRepository.cs +++ b/src/API/SQLiteScripting/Repositories/SQLiteRepository.cs @@ -7,12 +7,12 @@ using System.Globalization; using System.IO; using System.Linq; +using System.Reflection; using System.Text; namespace ErikEJ.SQLiteScripting { - //SSMS extnsion uses sqlite-netFx46-static-binary-bundle-Win32-2013-1.0.116.0.zip still, all others use NuGet package - + //SSMS extension uses sqlite-netFx46-static-binary-bundle-Win32-2013-1.0.116.0.zip still, all others use NuGet package public class SQLiteRepository : IRepository { private SQLiteConnection _cn; @@ -23,7 +23,16 @@ public class SQLiteRepository : IRepository public SQLiteRepository(string connectionString) { _cn = new SQLiteConnection(connectionString); + _cn.Open(); + + var dllFullFileName = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "x64", "SQLite.Interop.dll"); + if (File.Exists(dllFullFileName)) + { + _cn.EnableExtensions(true); + _cn.LoadExtension(dllFullFileName, "sqlite3_fts5_init"); + } + _cmd = new SQLiteCommand(); _cmd.Connection = _cn; } diff --git a/src/GUI/lib/ISqlCeScripting.dll b/src/GUI/lib/ISqlCeScripting.dll index 5d88167d..dedcf5be 100644 Binary files a/src/GUI/lib/ISqlCeScripting.dll and b/src/GUI/lib/ISqlCeScripting.dll differ diff --git a/src/GUI/lib/SQLiteScripting.dll b/src/GUI/lib/SQLiteScripting.dll index d93aa4eb..5296c027 100644 Binary files a/src/GUI/lib/SQLiteScripting.dll and b/src/GUI/lib/SQLiteScripting.dll differ diff --git a/src/GUI/lib/SqlCeScripting.dll b/src/GUI/lib/SqlCeScripting.dll index 1fde3396..dbe91efe 100644 Binary files a/src/GUI/lib/SqlCeScripting.dll and b/src/GUI/lib/SqlCeScripting.dll differ diff --git a/src/GUI/lib/SqlCeScripting40.dll b/src/GUI/lib/SqlCeScripting40.dll index 37f40fa7..8f98c818 100644 Binary files a/src/GUI/lib/SqlCeScripting40.dll and b/src/GUI/lib/SqlCeScripting40.dll differ