internal RecordManager(IErpService service, bool ignoreSecurity = false) { erpService = service; entityCache = new List<Entity>(); entityManager = new EntityManager(erpService.StorageService); entityRelationManager = new EntityRelationManager(erpService.StorageService); relationRepository = erpService.StorageService.GetEntityRelationRepository(); this.ignoreSecurity = ignoreSecurity; }
public EntityRelationManager(IStorageService storageService) { if (storageService == null) throw new ArgumentNullException("storageService", "The storage service is required."); this.storageService = storageService; relationRepository = storageService.GetEntityRelationRepository(); entityRepository = storageService.GetEntityRepository(); }
public EntityRelationManager(IStorageService storageService) { if (storageService == null) { throw new ArgumentNullException("storageService", "The storage service is required."); } this.storageService = storageService; relationRepository = storageService.GetEntityRelationRepository(); entityRepository = storageService.GetEntityRepository(); }