Compare commits
No commits in common. "a7d37c1d195f9aa2202eed398e592c94af22b0c0" and "83c1a526d322cf3961f15be66d11a7f366fde626" have entirely different histories.
a7d37c1d19
...
83c1a526d3
25
Program.cs
25
Program.cs
@ -18,25 +18,20 @@ public class Program
|
||||
{
|
||||
using (var connection = new SqliteConnection(connectionString))
|
||||
{
|
||||
connection.Open();
|
||||
try
|
||||
connection.Open();
|
||||
try
|
||||
{
|
||||
Database.Database.CreateDatabaseQuery(connection);
|
||||
}
|
||||
catch
|
||||
{
|
||||
Database.Database.CreateDatabaseQuery(connection);
|
||||
}
|
||||
catch
|
||||
{
|
||||
Console.WriteLine("Database already exists.");
|
||||
Console.WriteLine("Database already exists.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
using (var command = connection.CreateCommand())
|
||||
{
|
||||
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);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -5,7 +5,6 @@ namespace Team1
|
||||
{
|
||||
class Library
|
||||
{
|
||||
private SqliteConnection connection;
|
||||
public Library(SqliteConnection connection)
|
||||
{
|
||||
this.connection = connection;
|
||||
|
||||
@ -223,7 +223,7 @@ namespace Team4
|
||||
using (var command = conn.CreateCommand())
|
||||
{
|
||||
command.CommandText = @"
|
||||
SELECT *
|
||||
SELECT author.ID
|
||||
FROM Authors author
|
||||
WHERE author.ID = @aid;";
|
||||
command.Parameters.AddWithValue("@aid", authorID);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user