private static void GetExcludedFields(TableDefinition main, TableDefinition changes, TableDefinition tableDefinition) { foreach (var fieldName in main.ExcludedColumns.Concat(changes.ExcludedColumns).Except(changes.IncludedColumns)) { tableDefinition.ExcludeColumnFromComparison(fieldName); } }
/// <summary> /// Indicate that a field should be excluded from comparisons. By default all fields are included. If an excluded field must be included, <see cref="Include"/> it /// to override this indicator. /// <remarks>If <see cref="Exclude"/> and <see cref="Include"/> are both specified, the field will be included.</remarks> /// </summary> /// <param name="fieldName">The field name</param> public TableDefiner Exclude(string fieldName) { _tableDefinition.ExcludeColumnFromComparison(fieldName); return(this); }