From 4c6223046d69499c9f01aaf3a0d24c9e039b2f34 Mon Sep 17 00:00:00 2001 From: SpoinkyNL Date: Thu, 18 Apr 2019 19:44:20 +0200 Subject: [PATCH] Fix SQLite --- .../Repositories/ProfileRepository.cs | 1 + .../Repositories/SettingRepository.cs | 1 + src/Artemis.Storage/Storage.db | Bin 94208 -> 0 bytes src/Artemis.Storage/StorageContext.cs | 14 ++++++++++-- src/Artemis.UI/Artemis.UI.csproj | 21 ++++++++++++++++++ src/Artemis.UI/packages.config | 8 +++++++ 6 files changed, 43 insertions(+), 2 deletions(-) delete mode 100644 src/Artemis.Storage/Storage.db diff --git a/src/Artemis.Storage/Repositories/ProfileRepository.cs b/src/Artemis.Storage/Repositories/ProfileRepository.cs index 77bc4efd8..cb1c826a9 100644 --- a/src/Artemis.Storage/Repositories/ProfileRepository.cs +++ b/src/Artemis.Storage/Repositories/ProfileRepository.cs @@ -14,6 +14,7 @@ namespace Artemis.Storage.Repositories public ProfileRepository() { _dbContext = new StorageContext(); + _dbContext.Database.EnsureCreated(); } public IQueryable GetAll() diff --git a/src/Artemis.Storage/Repositories/SettingRepository.cs b/src/Artemis.Storage/Repositories/SettingRepository.cs index 0b52aaee4..8564edbf8 100644 --- a/src/Artemis.Storage/Repositories/SettingRepository.cs +++ b/src/Artemis.Storage/Repositories/SettingRepository.cs @@ -14,6 +14,7 @@ namespace Artemis.Storage.Repositories internal SettingRepository() { _dbContext = new StorageContext(); + _dbContext.Database.EnsureCreated(); } public IQueryable GetAll() diff --git a/src/Artemis.Storage/Storage.db b/src/Artemis.Storage/Storage.db deleted file mode 100644 index b0641d32bdae5f4f688302933baf0ce1f17e3dcf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 94208 zcmeI&+i%-c0LSsTm$>bkw!5^Zs;U|bR3dh1N}*IdK-;-p)->(XFuDg6g*6+Nx@IIU zP@y3;qW=Q_0FQ`&0Kqd7kG%52KfpVW9N+CY?p7oav%b-?B)%M<^ZA`~Y|q=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G3!}V69ZZ;NgF5Xm|Mbrb0R#|0 z009ILKmY**5I_I{1X3(uJ^$zaKg9vlGz1Vp009ILKmY**5I_I{1cU(3|LFz@AbCc!JB7gt_2q1s}0tg_000Iag!1I6l00IagfB*srAb#n z1$h3S{)}lM0tg_000IagfB*srAbrHLfB*srAbfB*sr zAb ..\packages\MaterialDesignThemes.2.5.1\lib\net45\MaterialDesignThemes.Wpf.dll + + ..\packages\Microsoft.Data.Sqlite.Core.2.2.4\lib\netstandard2.0\Microsoft.Data.Sqlite.dll + ..\packages\Ninject.3.3.4\lib\net45\Ninject.dll @@ -107,6 +110,18 @@ ..\packages\RGB.NET.Groups.0.1.22\lib\net45\RGB.NET.Groups.dll + + ..\packages\SQLitePCLRaw.bundle_green.1.1.12\lib\net45\SQLitePCLRaw.batteries_green.dll + + + ..\packages\SQLitePCLRaw.bundle_green.1.1.12\lib\net45\SQLitePCLRaw.batteries_v2.dll + + + ..\packages\SQLitePCLRaw.core.1.1.12\lib\net45\SQLitePCLRaw.core.dll + + + ..\packages\SQLitePCLRaw.provider.e_sqlite3.net45.1.1.12\lib\net45\SQLitePCLRaw.provider.e_sqlite3.dll + ..\packages\Stylet.1.1.22\lib\net45\Stylet.dll @@ -244,6 +259,12 @@ + + + + + + \ No newline at end of file diff --git a/src/Artemis.UI/packages.config b/src/Artemis.UI/packages.config index a1b5eaaae..67a7db653 100644 --- a/src/Artemis.UI/packages.config +++ b/src/Artemis.UI/packages.config @@ -8,6 +8,8 @@ + + @@ -18,6 +20,12 @@ + + + + + + \ No newline at end of file