Esempio n. 1
0
        public async Task Search(TNDTargetModel targetModel, TNDSearchItem searchItem)
        {
            var taskSearch = this.GetBuis().Search(targetModel, searchItem);

            try {
                await taskSearch;
            } catch (Exception exception) {
                throw;
            }
        }
Esempio n. 2
0
        public void ApplyConfiguration(TNDConfiguration configuration)
        {
            var metaEntities = configuration.MetaEntities.ToArray();

            {
                var item = new TNDSearchItem()
                {
                    MetaEntityName = ConstsLibrary.SearchAll, Search = string.Empty, MetaEntity = null
                };
                this.SearchItems.Add(item);
            }
            foreach (var metaEntity in metaEntities)
            {
                var item = new TNDSearchItem()
                {
                    MetaEntityName = metaEntity.MetaEntityName, Search = string.Empty, MetaEntity = metaEntity
                };
                this.SearchItems.Add(item);
            }
        }