PIbd-21_Afanasev_S.S_SUBD_C.../ComputerFirm/database/Abstractions.cs

54 lines
1.9 KiB
C#
Raw Permalink Normal View History

2024-05-06 22:17:29 +04:00
using System.ComponentModel;
namespace database
{
public abstract class Abstractions
{
// CDUD операции для каждой сущности
// Device
public abstract void AddDevice(Device device);
public abstract List<Device> GetDevices();
public abstract Device GetDeviceById(int id);
public abstract void UpdateDevice(Device device);
public abstract void DeleteDevice(int id);
// Employees
public abstract void AddEmployee(Employee employee);
public abstract List<Employee> GetEmployees();
public abstract Employee GetEmployeeById(int id);
public abstract void UpdateEmployee(Employee employee);
public abstract void DeleteEmployee(int id);
// Client
public abstract void AddClient(Client client);
public abstract Client GetClientById(int id);
public abstract List<Client> GetClients();
public abstract void UpdateClient(Client client);
public abstract void DeleteClient(int id);
// Orders
public abstract void AddOrder(Order order);
public abstract Order GetOrderById(int id);
public abstract List<Order> GetOrders();
public abstract void UpdateOrder(Order order);
public abstract void DeleteOrder(int id);
// Service
public abstract void AddService(Service service);
public abstract Service GetServiceById(int id);
public abstract List<Service> GetServices();
public abstract void UpdateService(Service service);
public abstract void DeleteService(int id);
// Components
public abstract void AddComponent(Component component);
public abstract Component GetComponentById(int id);
public abstract List<Component> GetComponents();
public abstract void UpdateComponent(Component component);
public abstract void DeleteComponent(int id);
}
}