private LoadOperation <DocumentManager.Web.Model.user> LoadUserEntities()
        {
            this.IsBusy = true;
            EntityQuery <DocumentManager.Web.Model.user> lQuery = documentManagerContext.GetUserQuery();

            return(documentManagerContext.Load(lQuery.SortAndPageBy(this.userView)));
        }
示例#2
0
        public void LoadData()
        {
            IsBusy = true;
            DocumentManagerDomainContext = new DocumentManager.Web.DocumentManagerDomainContext();
            DocumentManagerDomainContext.PropertyChanged -= systemManageDomainContext_PropertyChanged;
            DocumentManagerDomainContext.PropertyChanged += systemManageDomainContext_PropertyChanged;
            LoadOperation <DocumentManager.Web.Model.user> loadOperationUser =
                DocumentManagerDomainContext.Load <DocumentManager.Web.Model.user>(DocumentManagerDomainContext.GetUserQuery());

            loadOperationUser.Completed += loadOperation_Completed;
        }
        private void loadOperationFileType_Completed(object sender, EventArgs e)
        {
            FileTypeList.Clear();
            FileTypeDictionary.Clear();
            LoadOperation loadOperation = sender as LoadOperation;

            foreach (Web.Model.filetype filetype in loadOperation.Entities)
            {
                FileTypeEntity lFileTypeEntity = new FileTypeEntity();
                lFileTypeEntity.FileType = filetype;
                lFileTypeEntity.Update();
                FileTypeList.Add(lFileTypeEntity);
                FileTypeDictionary.Add(lFileTypeEntity.FileTypeId, lFileTypeEntity);
            }

            DocumentViewModel.FileTypeEntityDictionary = FileTypeDictionary;
            DocumentViewModel.FileTypeEntityList       = FileTypeList;

            LoadOperation <DocumentManager.Web.Model.user> loadOperationUser =
                documentManagerContext.Load <DocumentManager.Web.Model.user>(documentManagerContext.GetUserQuery());

            loadOperationUser.Completed += loadOperationUser_Completed;
        }
 public void LoadData()
 {
     IsBusy = true;
     DocumentManagerDomainContext = new DocumentManager.Web.DocumentManagerDomainContext();
     DocumentManagerDomainContext.PropertyChanged -= systemManageDomainContext_PropertyChanged;
     DocumentManagerDomainContext.PropertyChanged += systemManageDomainContext_PropertyChanged;
     LoadOperation<DocumentManager.Web.Model.user> loadOperationUser =
         DocumentManagerDomainContext.Load<DocumentManager.Web.Model.user>(DocumentManagerDomainContext.GetUserQuery());
     loadOperationUser.Completed += loadOperation_Completed;
 }