Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

EF UserStore: Expose a new protected virtual for each Find() query #1040

@msmolka

Description

@msmolka

I'm facing issues with using default configuration of identity using entity framework core. There are restrictions on databases like max key length on mysql. So handling complex keys requires tricks and a lot overwritten code. I decided to not use complex key as primary key (also simpler change tracking later if required). But because internal code is using FindAsync method now I need to overwrite more methods in userstore just to handle single find.

My idea is use SingleOrDefaultAsync or at least make find method when complex key is used overridable. E.g. FindToken is private. Making it overridable simplifies code. At this moment I need to copy FindToken, SetTokenAsync and RemoveTokenAsync to my own code.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions