Compare commits

..

2 Commits

Author SHA1 Message Date
a7d37c1d19 feat: example tests 2025-11-10 10:52:08 +01:00
4e0b269003 fix: get author by id query 2025-11-10 10:51:52 +01:00
3 changed files with 17 additions and 11 deletions

View File

@ -32,6 +32,11 @@ public class Program
using (var command = connection.CreateCommand())
{
// implment stuff here idc
AuthorDto author = Team2.Team2.AddAuthor(connection, "John", "Doe", new DateTime(1990, 1, 1));
AuthorDto getAuthor = Team4.Team4.GetAuthorById(connection, author.Id);
}
}

View File

@ -5,6 +5,7 @@ namespace Team1
{
class Library
{
private SqliteConnection connection;
public Library(SqliteConnection connection)
{
this.connection = connection;

View File

@ -223,7 +223,7 @@ namespace Team4
using (var command = conn.CreateCommand())
{
command.CommandText = @"
SELECT author.ID
SELECT *
FROM Authors author
WHERE author.ID = @aid;";
command.Parameters.AddWithValue("@aid", authorID);