diff --git a/LongWormMemory.db b/LongWormMemory.db new file mode 100644 index 0000000..d9972aa Binary files /dev/null and b/LongWormMemory.db differ diff --git a/Models/KatalogModel.cs b/Models/KatalogModel.cs index 62c9691..e728538 100644 --- a/Models/KatalogModel.cs +++ b/Models/KatalogModel.cs @@ -130,8 +130,6 @@ namespace BuecherwurmAPI.Models { using (var command = _dbConnection.CreateCommand()) { - // funktioniert das so? - //muss ProduktId übergeben werden? -> ProductId wird weiter hinten mit 'NULL' befüllt, damit die ID automatisch vergeben wird. command.CommandText = @"INSERT INTO Products (ProductId, Title, Author, Country, Link, Language, Pages, Year, Category, ImageLink, LendTime, LendType, Run, Audience, Topic) VALUES (NULL, @Title, @Author, @Country, @Link, @Language, @Pages, @Year, @Category, @ImageLink, @LendTime, @LendType, @Run, @Audience, @Topic)"; command.Parameters.Add(new SqliteParameter("@Title", book.Title));