Compare commits
2 Commits
83c1a526d3
...
a7d37c1d19
| Author | SHA1 | Date | |
|---|---|---|---|
| a7d37c1d19 | |||
| 4e0b269003 |
@ -32,6 +32,11 @@ public class Program
|
|||||||
using (var command = connection.CreateCommand())
|
using (var command = connection.CreateCommand())
|
||||||
{
|
{
|
||||||
// implment stuff here idc
|
// 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);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,6 +5,7 @@ namespace Team1
|
|||||||
{
|
{
|
||||||
class Library
|
class Library
|
||||||
{
|
{
|
||||||
|
private SqliteConnection connection;
|
||||||
public Library(SqliteConnection connection)
|
public Library(SqliteConnection connection)
|
||||||
{
|
{
|
||||||
this.connection = connection;
|
this.connection = connection;
|
||||||
|
|||||||
@ -223,7 +223,7 @@ namespace Team4
|
|||||||
using (var command = conn.CreateCommand())
|
using (var command = conn.CreateCommand())
|
||||||
{
|
{
|
||||||
command.CommandText = @"
|
command.CommandText = @"
|
||||||
SELECT author.ID
|
SELECT *
|
||||||
FROM Authors author
|
FROM Authors author
|
||||||
WHERE author.ID = @aid;";
|
WHERE author.ID = @aid;";
|
||||||
command.Parameters.AddWithValue("@aid", authorID);
|
command.Parameters.AddWithValue("@aid", authorID);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user