From 02a7649d488d7c4926f5495418b8b32b337c8bc2 Mon Sep 17 00:00:00 2001 From: Nikita Rusetsky Date: Mon, 11 Mar 2019 15:27:07 +0800 Subject: [PATCH] Service error fixed Selected Researcher binding bug isn't fixed though --- ResearchersWPF.Data/Model/ResDbContext.cs | 1 + ResearchersWPF.Data/packages.config | 2 +- .../App_Data/Researchers.db | Bin 0 -> 45056 bytes .../DataContracts/Researcher.cs | 16 ++-- ResearchersWPF.Service/Web.config | 2 +- ResearchersWPF.UI/App.config | 76 ++++++++++++++++-- ResearchersWPF.UI/App.xaml | 2 +- ResearchersWPF.UI/App.xaml.cs | 9 +++ ResearchersWPF.UI/Bootstrapper.cs | 2 +- ResearchersWPF.UI/ResearchersWPF.UI.csproj | 9 ++- ResearchersWPF.UI/View/ArticleListView.xaml | 21 ++--- ResearchersWPF.UI/View/ReportListView.xaml | 2 +- .../View/ResearcherListView.xaml | 2 +- ResearchersWPF.UI/Web.Debug.config | 31 +++++++ ResearchersWPF.UI/Web.Release.config | 32 ++++++++ ResearchersWPF.UI/Web.config | 76 ++++++++++++++++++ 16 files changed, 253 insertions(+), 30 deletions(-) create mode 100644 ResearchersWPF.Service/App_Data/Researchers.db create mode 100644 ResearchersWPF.UI/Web.Debug.config create mode 100644 ResearchersWPF.UI/Web.Release.config create mode 100644 ResearchersWPF.UI/Web.config diff --git a/ResearchersWPF.Data/Model/ResDbContext.cs b/ResearchersWPF.Data/Model/ResDbContext.cs index 3d9e9fa..c86fe1f 100644 --- a/ResearchersWPF.Data/Model/ResDbContext.cs +++ b/ResearchersWPF.Data/Model/ResDbContext.cs @@ -13,6 +13,7 @@ public class ResDbContext : DbContext public ResDbContext() { + SQLitePCL.raw.SetProvider(new SQLitePCL.SQLite3Provider_e_sqlite3()); Database.EnsureCreated(); } diff --git a/ResearchersWPF.Data/packages.config b/ResearchersWPF.Data/packages.config index 954bb9f..29c6935 100644 --- a/ResearchersWPF.Data/packages.config +++ b/ResearchersWPF.Data/packages.config @@ -9,7 +9,7 @@ - + diff --git a/ResearchersWPF.Service/App_Data/Researchers.db b/ResearchersWPF.Service/App_Data/Researchers.db new file mode 100644 index 0000000000000000000000000000000000000000..af287b1ebfc1021c09ad58ce026888b52c2bfc07 GIT binary patch literal 45056 zcmeI(Pfy!s90zbeKw^?YSq_yoA*2U$09Lj`ci5qtG%qnIYT{%jNFYtB+~jHSl-SfZ z(zIQcvUZ0ax7RW4w8NzJHH2xGy^6ktJ$7ttCp8qhRjTzhME>*G&!5llc^>DHVE?Oz z=`s4)c7}#WKNUU@2ob)ZR1ky$|J>rAXe;r9h3JIuN#Z!`upoT0(_ZGO<$@vH{`t1D z^n3Z&(!8h@|0#Z5_={h}1_1~_Ag=;;S(NUtlF=R0>alO@hYxjjVmqG8_bxM>?lE)f zz3|$ts;(*>mDaVIdPwDrn`PS4s2n~b(=C1&=Ok~B#F8lOZIaQ)QHgDb-(Y!$XWCY} z+*C?=ru0;Ds=|{xq|#?=^8KPHDeGjk9#y1iTXx?uPL9*Hh%c9Bst~8Wru;Z@ws2Pz zrO(&M=)sSgnBw)GTm+IYJE=&T0Y(Psjlv-x~f&xeIGa)7Oo#D z&b#f8oSNED`53Dz`&Ff;E|<5@whE%Oxk;X{1VKx6>eNXw9l%r?FX0+toO<-8!K~WW zW9Bfc%QB*!ET?987abz(U2(7@sZ<}#3{o=NWO$Oteop^+sD3Ogh|>Bx`RO1CRXqOV zqe41Jal-W?lzi^y;W19VW7}yMu9p#@sy(@7*L1GDr)lS!FG_1`Dc~ - + diff --git a/ResearchersWPF.UI/App.config b/ResearchersWPF.UI/App.config index 9188f59..c90f935 100644 --- a/ResearchersWPF.UI/App.config +++ b/ResearchersWPF.UI/App.config @@ -3,14 +3,80 @@ + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ResearchersWPF.UI/App.xaml b/ResearchersWPF.UI/App.xaml index c22e773..40fbf3d 100644 --- a/ResearchersWPF.UI/App.xaml +++ b/ResearchersWPF.UI/App.xaml @@ -3,7 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:ResearchersWPF.UI" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" - StartupUri="MainWindow.xaml"> + >