示例#1
0
 private void SetRepository(IDeviceObjectRepository r, IDeviceRepository dr, IDeviceTypeRepository dtr,
                            ICosemObjectRepository cor, SGMasterBaseEntities e)
 {
     _deviceObjectRepository = r;
     _deviceObjectRepository.SetEntities(e);
     _deviceRepository = dr;
     _deviceRepository.SetEntities(e);
     _deviceTypeRepository = dtr;
     _deviceTypeRepository.SetEntities(e);
     _cosemObjectRepository = cor;
     _cosemObjectRepository.SetEntities(e);
 }
示例#2
0
 private void SetRepository(ICosemObjectRepository r, ICosemLogicalDeviceRepository clr,
                            IDeviceTypeRepository dtr, ICosemClassRepository ccr,
                            ICosemAttributeDataTypeRepository cadtr, SGMasterBaseEntities e)
 {
     _cosemObjectRepository = r;
     _cosemObjectRepository.SetEntities(e);
     _cosemLogicaDeviceRepository = clr;
     _cosemLogicaDeviceRepository.SetEntities(e);
     _deviceTypeRepository = dtr;
     _deviceTypeRepository.SetEntities(e);
     _cosemClassRepository = ccr;
     _cosemClassRepository.SetEntities(e);
     _cosemAttributeDataTypeRepository = cadtr;
     _cosemAttributeDataTypeRepository.SetEntities(e);
 }