Skip to content

SqlCollationMapper.TryMap method

Tries to map the specified comparison to a collation name.

public static string? TryMap(string serverType, SqlCollationSpec spec, SqlCollationTarget target, 
    bool tolerant = false, Func<string, bool>? exists = null)
parameter description
serverType The server type of the dialect.
spec The comparison.
target What the collation is mapped for.
tolerant True to allow a collation that only differs in case or accent sensitivity.
exists Optional check for whether a collation exists on the server.

Return Value

The collation name, or null if there is no such collation.

See Also