namespace database { // Определение моделей данных public class Device { public int Id { get; set; } public string TypeDevice { get; set; } public string Model { get; set; } public string SerialNumber { get; set; } public int ClientId { get; set; } public int OrderId { get; set; } } public class Employee { public int Id { get; set; } public string Name { get; set; } public string Surname { get; set; } public string Position { get; set; } public string Timework { get; set; } public string Seniority { get; set; } public decimal CostPerHour { get; set; } } public class Client { public int Id { get; set; } public string Name { get; set; } public string Surname { get; set; } public string Phone { get; set; } public string Email { get; set; } } public class Order { public int Id { get; set; } public int ComponentId { get; set; } public int ClientId { get; set; } public int ServiceId { get; set; } public String DateStart { get; set; } public String DateEnd { get; set; } public decimal EndCost { get; set; } } public class Service { public int Id { get; set; } public string Title { get; set; } public decimal Cost { get; set; } public int EmployeesId { get; set; } } public class Component { public int Id { get; set; } public string Title { get; set; } public string CountSklad { get; set; } public double Price { get; set; } public string Manufacturer { get; set; } } }