public void Remove(OneToManyRelationshipMetadataInfo info)
 {
     list.Remove(info);
 }
 public void Add(OneToManyRelationshipMetadataInfo info)
 {
     list.Add(info);
 }
コード例 #3
0
 public void Add(OneToManyRelationshipMetadataInfo info)
 {
     list.Add(info);
 }
コード例 #4
0
        private void LoadOneToManyRelationships(IEnumerable<OneToManyRelationshipMetadata> rels)
        {
            var items = new List<ListViewItem>();

            foreach (var rel in rels.ToList().OrderBy(a => a.ReferencingEntity))
            {
                var rmd = new OneToManyRelationshipMetadataInfo(rel);

                var item = new ListViewItem(rmd.SchemaName) { Tag = rmd };
                AddSecondarySubItems(typeof(OneToManyRelationshipMetadataInfo), ListViewColumnsSettings.RelFirstColumns, lvcSettings.OtmRelSelectedAttributes, rmd, item);

                items.Add(item);
            }

            OneToManyListView.Items.Clear();
            OneToManyListView.Items.AddRange(items.ToArray());
        }
コード例 #5
0
 public void Remove(OneToManyRelationshipMetadataInfo info)
 {
     list.Remove(info);
 }