Dodaj pliki projektów.
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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 = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user