Dodaj pliki projektów.

This commit is contained in:
Krzysztof KrzysiekSiemv Smaga
2024-11-25 22:42:31 +01:00
parent 133b8199db
commit 7581d5df42
58 changed files with 1644 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
namespace DatabaseConnection.Model
{
public class Author
{
public int Id { get; set; }
public string? Name { get; set; }
public string? Surname { get; set; }
public string? Birthdate { get; set; }
}
}
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DatabaseConnection.Model
{
public class Book
{
public int Id { get; set; }
public string? Title { get; set; }
public string? Author { get; set; }
public string? Category { get; set; }
public string? Publisher { get; set; }
public string? PublishDate { get; set; }
public double Price { get; set; }
public int Amount { get; set; }
}
}
+19
View File
@@ -0,0 +1,19 @@
namespace DatabaseConnection.Model
{
public class Reader
{
public int Id { get; set; }
public string? Name { get; set; }
public string? Surname { get; set; }
public string? Address { get; set; }
public string? Birthdate { get; set; }
public long Number { get; set; }
public string? EmailAddress { get; set; }
public Book[] RentedBooks { get; set; }
public Reader()
{
RentedBooks = [];
}
}
}
+13
View File
@@ -0,0 +1,13 @@
namespace DatabaseConnection.Model
{
public class Worker
{
public int Id { get; set; }
public string? Name { get; set; }
public string? Surname { get; set; }
public string? StartOfWorking { get; set; }
public string? Position { get; set; }
public double HourlyRate { get; set; }
public string? EndOfWorking { get; set; }
}
}