How to Create a Generic Repository in C# that Handles Both BaseEntity and IdentityUser Types?
I am developing a management system and I am using the identity library for members. But I have a problem that I could not overcome. I have my own repository structure here and I need to use this structure for the users that I create with the identity library. My repository classes are designed to work for types that inherit the BaseEntity class. However, I want to use the same repository with IdentityUser types. Since the IdentityUser class does not inherit the BaseEntity class, what kind of solution can I implement to work with this class in a compatible way? Should I provide a solution by using two separate repository classes?