예제 #1
0
 private void SetRepository(IGroupRepository r, IDeviceTypeRepository dtr, IDeviceRepository dr,
                            IDeviceLogicalDeviceRepository or, SGMasterBaseEntities e)
 {
     _groupRepository = r;
     _groupRepository.SetEntities(e);
     _deviceTypeRepository = dtr;
     _deviceTypeRepository.SetEntities(e);
     _deviceRepository = dr;
     _deviceRepository.SetEntities(e);
     _deviceLogicalDeviceRepository = or;
     _deviceLogicalDeviceRepository.SetEntities(e);
 }
예제 #2
0
 private void SetRepository(IDeviceLogicalDeviceRepository r, IDeviceRepository dr, IDeviceTypeRepository dtr,
                            ICosemLogicalDeviceRepository cor, IDeviceObjectRepository dor,
                            SGMasterBaseEntities e)
 {
     _deviceLogicalDeviceRepository = r;
     _deviceLogicalDeviceRepository.SetEntities(e);
     _deviceRepository = dr;
     _deviceRepository.SetEntities(e);
     _deviceTypeRepository = dtr;
     _deviceTypeRepository.SetEntities(e);
     _cosemLogicalDeviceRepository = cor;
     _cosemLogicalDeviceRepository.SetEntities(e);
     _deviceObjectRepository = dor;
     _deviceObjectRepository.SetEntities(e);
 }
예제 #3
0
 private void SetRepository(IGroupRepository r, IDeviceRepository dr, IDeviceTypeAndOwnerRepository dt,
                            IDeviceTypeRepository dtr, IDeviceOwnerRepository dor,
                            IDeviceLogicalDeviceRepository or, SGMasterBaseEntities e)
 {
     DeviceTypeAndOwnerRepository = dt;
     DeviceTypeAndOwnerRepository.SetEntities(e);
     DeviceTypeRepository = dtr;
     DeviceTypeRepository.SetEntities(e);
     GroupRepository = r;
     GroupRepository.SetEntities(e);
     DeviceRepository = dr;
     DeviceRepository.SetEntities(e);
     DeviceOwnerRepository = dor;
     DeviceOwnerRepository.SetEntities(e);
     DeviceLogicalDeviceRepository = or;
     DeviceLogicalDeviceRepository.SetEntities(e);
 }