/// <summary> /// Adds the keys that must be inherit always, even if "InheritTable" and "InheritColumns" are /// <see langword="false"/>. /// </summary> /// <param name="inheritKeys">The keys that must be inherit always.</param> /// <returns>The metadata processor.</returns> public DefaultMetadataProcessor InheritAlways(params string[] inheritKeys) { InheritAlwaysKeys.UnionWith(inheritKeys); return(this); }
/// <summary> /// Determines if a table metadata key must be inherited. /// </summary> /// <param name="tableConfig">The table configuration.</param> /// <param name="key">The metadata key.</param> /// <returns><see langword="true"/> if the key must be inherited, otherwise, <see langword="false"/>.</returns> protected bool IsInheritTable(TableConfig tableConfig, string key) { return(IsInheritAllTable || tableConfig.InheritTable == true || InheritAlwaysKeys.Contains(key)); }
/// <summary> /// Determines if a member metadata key must be inherited. /// </summary> /// <param name="tableConfig">The table configuration.</param> /// <param name="key">The metadata key.</param> /// <returns><see langword="true"/> if the key must be inherited, otherwise, <see langword="false"/>.</returns> protected bool IsInheritMember(TableConfig tableConfig, string key) { return(IsInheritAllMembers || tableConfig.InheritColumns == true || InheritAlwaysKeys.Contains(key)); }
/// <summary> /// Adds the keys that must be inherit always, even if "InheritTable" and "InheritColumns" are /// <see langword="false"/>. /// </summary> /// <param name="inheritKeys">The keys that must be inherit always.</param> /// <returns>The metadata processor.</returns> public DefaultMetadataProcessor InheritAlways(IEnumerable <string> inheritKeys) { InheritAlwaysKeys.UnionWith(inheritKeys); return(this); }