コード例 #1
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));
 }
コード例 #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));
 }