Daarto icon indicating copy to clipboard operation
Daarto copied to clipboard

String should be TKey in DapperStoreOptionsExtentions to use different ID type

Open SZLMCL opened this issue 4 years ago • 0 comments

Hello,

I would like to use Guid ID type as ID of Users and Roles...

In the current extension method the 'string' type is hardcoded in more place (one example):

    public static void AddUserRolesTable<TUserRolesTable, TUserRole>(this DapperStoreOptions options)
        where TUserRolesTable : UserRolesTable<IdentityRole, string, TUserRole>
        where TUserRole : IdentityUserRole<string>, new() {
        options.AddUserRolesTable<TUserRolesTable, IdentityRole, string, TUserRole>();

I think the string type should be replaced with TKey.

SZLMCL avatar Jun 24 '20 21:06 SZLMCL