Interface INameComparer
Decides whether a column name matches a member or parameter. Implement this interface for a naming rule that cannot be expressed with the built in naming attributes.
public interface INameComparer
- Extension Methods
Methods
Contains(string)
Checks whether this comparer or a child contains the supplied name.
bool Contains(string name)
Parameters
namestring
Returns
GetDefaultName()
Returns the primary or first registered name used for identification.
string GetDefaultName()
Returns
Match(ReadOnlySpan<char>, Span<INameComparer>)
Checks whether colName matches this comparer and its parent comparers.
bool Match(ReadOnlySpan<char> colName, Span<INameComparer> nameComparers)
Parameters
colNameReadOnlySpan<char>The remaining portion of the column name to match.
nameComparersSpan<INameComparer>The preceding chain of comparers to validate against.
Returns
- bool
trueif the full path matches, otherwisefalse.
TryGetTrueName(object, out string)
Gets a name from an attribute named TrueNameAttribute.
The first public string property supplies the name.
public static bool TryGetTrueName(object attribute, out string trueName)