Share via


SimpleMembershipProviderCasingBehavior Enumeration

Configures the behavior of SimpleMembershipProvider for the casing of user name queries.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

Syntax

'Declaration
Public Enumeration SimpleMembershipProviderCasingBehavior
'Usage
Dim instance As SimpleMembershipProviderCasingBehavior
public enum SimpleMembershipProviderCasingBehavior
public enum class SimpleMembershipProviderCasingBehavior
type SimpleMembershipProviderCasingBehavior
public enum SimpleMembershipProviderCasingBehavior

Members

Member name Description
NormalizeCasing Uses the SQL Upper function to normalize the casing of user names for a case-insensitive comparison. This is the default value.

This option uses the SQL Upper function to perform case-normalization. This guarantees that the the user name is searched case-insensitively, but can have a performance impact when a large number of users exist.

RelyOnDatabaseCollation Relies on the database's configured collation to normalize casing for the comparison of user names. User names are provided to the database exactly as entered by the user.

This option relies on the configured collection of database table for user names to perform a correct comparison. This is guaranteed to be correct for the chosen collation and performant. Only choose this option if the table storing user names is configured with the desired collation.

See Also

Reference

WebMatrix.WebData Namespace