Table of Contents

Interface INameComparer

Namespace
Rinku.Mapping
Assembly
Rinku.dll

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

name string

Returns

bool

GetDefaultName()

Returns the primary or first registered name used for identification.

string GetDefaultName()

Returns

string

Match(ReadOnlySpan<char>, Span<INameComparer>)

Checks whether colName matches this comparer and its parent comparers.

bool Match(ReadOnlySpan<char> colName, Span<INameComparer> nameComparers)

Parameters

colName ReadOnlySpan<char>

The remaining portion of the column name to match.

nameComparers Span<INameComparer>

The preceding chain of comparers to validate against.

Returns

bool

true if the full path matches, otherwise false.

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)

Parameters

attribute object
trueName string

Returns

bool