示例#1
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);
 }
示例#2
0
 private void SetRepository(IDeviceOwnerRepository r, SGMasterBaseEntities e)
 {
     _deviceOwnerRepository = r;
     _deviceOwnerRepository.SetEntities(e);
 }