using System.ComponentModel; namespace database { public abstract class Abstractions { // CDUD операции для каждой сущности // Device public abstract void AddDevice(Device device); public abstract List 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 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 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 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 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 GetComponents(); public abstract void UpdateComponent(Component component); public abstract void DeleteComponent(int id); } }