diff --git a/SQLite_Console/PsqLiteWrapper/FodyWeavers.xml b/SQLite_Console/PsqLiteWrapper/FodyWeavers.xml new file mode 100644 index 0000000..5029e70 --- /dev/null +++ b/SQLite_Console/PsqLiteWrapper/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/SQLite_Console/PsqLiteWrapper/PSqLite.cs b/SQLite_Console/PsqLiteWrapper/PSqLite.cs index 28b402d..63311e4 100644 --- a/SQLite_Console/PsqLiteWrapper/PSqLite.cs +++ b/SQLite_Console/PsqLiteWrapper/PSqLite.cs @@ -167,5 +167,12 @@ namespace PSqLiteWrapper return dataSet; } + + public static SQLiteDataAdapter GetAdapterSelectQuery(SQLiteConnection openedConn, string query) + { + SQLiteDataAdapter adapter = new SQLiteDataAdapter(query, openedConn); + + return adapter; + } } } diff --git a/SQLite_Console/PsqLiteWrapper/PSqLiteWrapper.csproj b/SQLite_Console/PsqLiteWrapper/PSqLiteWrapper.csproj index f15cdf9..8c3b52a 100644 --- a/SQLite_Console/PsqLiteWrapper/PSqLiteWrapper.csproj +++ b/SQLite_Console/PsqLiteWrapper/PSqLiteWrapper.csproj @@ -1,5 +1,6 @@  + @@ -33,7 +34,13 @@ prompt 4 + + false + + + ..\packages\Costura.Fody.5.7.0\lib\netstandard1.0\Costura.dll + ..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.dll @@ -41,6 +48,7 @@ ..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.SqlServer.dll + @@ -52,6 +60,11 @@ ..\packages\System.Data.SQLite.Linq.1.0.117.0\lib\net45\System.Data.SQLite.Linq.dll + + + + ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll + @@ -75,7 +88,12 @@ + + + + + \ No newline at end of file diff --git a/SQLite_Console/PsqLiteWrapper/packages.config b/SQLite_Console/PsqLiteWrapper/packages.config index ad6d85a..c172798 100644 --- a/SQLite_Console/PsqLiteWrapper/packages.config +++ b/SQLite_Console/PsqLiteWrapper/packages.config @@ -1,9 +1,42 @@  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SQLite_Console/SQLite_Console/Program.cs b/SQLite_Console/SQLite_Console/Program.cs index 8788afb..1f4804c 100644 --- a/SQLite_Console/SQLite_Console/Program.cs +++ b/SQLite_Console/SQLite_Console/Program.cs @@ -39,7 +39,8 @@ namespace SQLite_Console @"CREATE TABLE 'member' ( 'name' TEXT, 'age' INTEGER, - 'guid' TEXT + 'guid' TEXT, + PRIMARY KEY('guid') );"); watch.Stop();