private LoadOperation <Web.Model.filetype> loadFileTypeEntities() { IsBusy = true; EntityQuery <Web.Model.filetype> lQuery = documentManagerContext.GetFiletypeQuery(); return(documentManagerContext.Load(lQuery.SortAndPageBy(fileTypeView))); }
private void LoadData() { IsBusy = true; LoadOperation <DocumentManager.Web.Model.filetype> loadOperationFileType = documentManagerContext.Load <DocumentManager.Web.Model.filetype>(documentManagerContext.GetFiletypeQuery()); loadOperationFileType.Completed += loadOperationFileType_Completed; }
private void loadOperationTaxPayerType_Completed(object sender, EventArgs e) { TaxPayerTypeList.Clear(); TaxPayerTypeEntityDictionary.Clear(); LoadOperation loadOperation = sender as LoadOperation; foreach (Web.Model.taxpayertype taxpayertype in loadOperation.Entities) { TaxPayerTypeEntity lTaxPayerTypeEntity = new TaxPayerTypeEntity(); lTaxPayerTypeEntity.TaxPayerType = taxpayertype; lTaxPayerTypeEntity.Update(); TaxPayerTypeList.Add(lTaxPayerTypeEntity); TaxPayerTypeEntityDictionary.Add(lTaxPayerTypeEntity.TaxPayerTypeId, lTaxPayerTypeEntity); } LoadOperation <DocumentManager.Web.Model.filetype> loadOperationFileType = documentManagerContext.Load <DocumentManager.Web.Model.filetype>(documentManagerContext.GetFiletypeQuery()); loadOperationFileType.Completed += loadOperationFileType_Completed; }