/// <summary> /// Removes the entry from the Shared Metadata and removes it from the /// <see cref="SharedTableData"/> if no other entires are using it. /// </summary> /// <param name="md"></param> public void RemoveSharedMetadata(SharedTableCollectionMetadata md) { md.RemoveEntry(Data.Id, Table.LocaleIdentifier.Code); if (md.IsEmpty) { Table.SharedData.Metadata.RemoveMetadata(md); } }
/// <summary> /// SharedTableCollectionMetadata is Metadata that can be applied to multiple table entries in a table collection. /// The Metadata is stored in the <see cref="SharedTableData"/>. /// </summary> /// <param name="md"></param> public void AddSharedMetadata(SharedTableCollectionMetadata md) { if (!Table.SharedData.Metadata.Contains(md)) { Table.SharedData.Metadata.AddMetadata(md); } md.AddEntry(Data.Id, Table.LocaleIdentifier.Code); }