private void SynchronizeLinks(T entity, uint id) { foreach (var link in cache.GetLinksFor(id)) { if (!entity.Links.Contains(link)) { DeleteLink(entity, link); } } foreach (var link in entity.Links) { SaveLink(entity, link); } }
private void SynchronizeLinks(T entity, uint id) { foreach (var link in cache.GetLinksFor(id)) { if (!entity.Links.Contains(link)) { DeleteLink(entity, link); } } foreach (var link in entity.Links) { SaveLink(entity, link); } }