示例#1
0
        private CollectionDataItem CreateCollectionDataItem(ServiceInfo service, Table table)
        {
            var item = new CollectionDataItem(service, table);

            foreach (var column in table.Columns)
            {
                item.Elements.Add(new PropertyDataItem(service, table, column));
            }
            foreach (var association in table.Associations)
            {
                item.Elements.Add(new PropertyDataItem(service, table, association));
            }
            return(item);
        }
示例#2
0
 private void RequestCollectionData(CollectionDataItem collectionItem)
 {
     if (collectionItem.Results == null)
         collectionItem.Results = new ObservableResultCollection(
             (this.itemListView.SelectedItem as ServiceDataItem).Subtitle,
             collectionItem.Title, collectionItem.Table, this);
 }
示例#3
0
 private CollectionDataItem CreateCollectionDataItem(ServiceInfo service, Table table)
 {
     var item = new CollectionDataItem(service, table);
     foreach (var column in table.Columns)
     {
         item.Elements.Add(new PropertyDataItem(service, table, column));
     }
     foreach (var association in table.Associations)
     {
         item.Elements.Add(new PropertyDataItem(service, table, association));
     }
     return item;
 }