16 using System.Collections.Generic;
17 using erminas.SmartAPI.Utils.CachedCollections;
19 namespace erminas.SmartAPI.CMS.Project.Pages.Elements
21 internal class MultiLinkConnections : LinkConnections, IMultilinkConnections
23 internal MultiLinkConnections(ILinkElement element,
Caching caching) : base(element, caching)
27 public void Add(IPage page)
32 public void AddRange(IEnumerable<IPage> pages)
34 foreach (var curPage
in pages)
36 SaveConnection(curPage);
40 public new void RemoveRange(IEnumerable<IPage> pages)
42 base.RemoveRange(pages);
45 public override void Set(ILinkTarget target,
Linking linking)
47 if (linking ==
Linking.AsConnection)
51 base.Set(target, linking);
58 void AddRange(IEnumerable<IPage> pages);
59 void RemoveRange(IEnumerable<IPage> pages);