Example #1
0
 /// <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);
 }
Example #2
0
 /// <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));
 }
Example #3
0
 /// <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));
 }
Example #4
0
 /// <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);
 }