Пример #1
0
        private async Task LoadExistingShortIds(DataReference dataReference)
        {
            var query = $"Data.{nameof(DataAPI.DataStructures.DataManagement.ShortId.OriginalId)} = '{dataReference.Id}' " +
                        $"AND Data.{nameof(DataAPI.DataStructures.DataManagement.ShortId.CollectionName)} = '{dataReference.DataType}'";
            var shortIds = await shortIdDatabase.GetManyAsync(query);

            shortIds.ForEach(x => ExistingShortIds.Add(x));
        }
Пример #2
0
 private List <IDataServiceTargetViewModel> LoadDataServiceTargets()
 {
     return(Task.Run(async() => await dataServiceTargetDatabase.GetManyAsync()).Result.Select(CreateViewModel).ToList());
 }