Skip to content

It's not possible to use a string PK #1

@caesay

Description

@caesay

By default, Asp.net identity uses string PK data types (guids). There are lots of good reasons for doing so as long as you don't need a clustered index, but it's impossible to do so with this library because it wraps the columns with a nullable operator.

Example:

public interface IModificationAuditable<TUserId> : IModificationTrackable where TUserId : struct
{
    TUserId? UpdaterUserId { get; set; }
}

If TUserId in the above sample is string, then it's impossible to declare a property which will satisfy the interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions