コード例 #1
0
		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;
		}
コード例 #2
0
        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();
        }
コード例 #3
0
        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();
        }