Interface IRoomRepository
Assembly: Lers.Server.System.dll
Syntax
public interface IRoomRepository
Methods
GetByCounter(IEquipment)
Получает помещение в котором установлен указанный счетчик.
Declaration
IRoom GetByCounter(IEquipment equipment)
Parameters
| Type |
Name |
Description |
| IEquipment |
equipment |
Счетчик.
|
Returns
| Type |
Description |
| IRoom |
Возвращает помещение или null, если счетчик не существует или он не привязан к помещению.
|
GetById(EntityIdentifier<Room>)
Получает помещение по идентификатору.
Declaration
IRoom GetById(EntityIdentifier<Room> id)
Parameters
| Type |
Name |
Description |
| EntityIdentifier<Lers.Models.Room> |
id |
Идентификатор помещение.
|
Returns
| Type |
Description |
| IRoom |
Возвращает помещение или null, если такого помещения нет в базе данных.
|
GetByIdChecked(IAccount, EntityIdentifier<Room>)
Declaration
IRoom GetByIdChecked(IAccount account, EntityIdentifier<Room> id)
Parameters
Returns
GetByIdChecked(EntityIdentifier<Room>)
Получает помещение по идентификатору. Если помещения нет, выдаёт исключение.
Declaration
IRoom GetByIdChecked(EntityIdentifier<Room> id)
Parameters
| Type |
Name |
Description |
| EntityIdentifier<Lers.Models.Room> |
id |
Идентификатор помещение.
|
Returns
| Type |
Description |
| IRoom |
Возвращает помещение или null, если такого помещения нет в базе данных.
|
GetList()
Declaration
IEnumerable<IRoom> GetList()
Returns
| Type |
Description |
| IEnumerable<IRoom> |
|
GetListByHouse(IHouse, String, Nullable<Int32>)
Возвращает помещения жилого дома.
Declaration
IEnumerable<IRoom> GetListByHouse(IHouse house, string entranceNumber = null, int? floor = null)
Parameters
| Type |
Name |
Description |
| IHouse |
house |
|
| System.String |
entranceNumber |
|
| System.Nullable<System.Int32> |
floor |
|
Returns
| Type |
Description |
| IEnumerable<IRoom> |
|
GetListByHouseWithAccessCheck(IAccount, IHouse)
Declaration
IEnumerable<IRoom> GetListByHouseWithAccessCheck(IAccount account, IHouse house)
Parameters
Returns
| Type |
Description |
| IEnumerable<IRoom> |
|
GetTenantRooms(IAccount)
Получает список помещений для учетной записи.
Declaration
IRoom[] GetTenantRooms(IAccount account)
Parameters
| Type |
Name |
Description |
| IAccount |
account |
Идентификатор учетной записи.
|
Returns
| Type |
Description |
| IRoom[] |
Список помещений.
|