Generic Repository with string as Primary Key #218
|
Let's say I have a Country Entity with a string primary key on the CountryCode (e.g. US). How can the generic Repository handle this situation? Anyone has managed to have a truly Generic Repository? |
Answered by
iammukeshm
Nov 30, 2021
Replies: 3 comments 2 replies
|
This is related to #172 The current implementation forces to have GUID as the primary key of every base Entity |
0 replies
|
However, thinking about it. I guess it should be pretty straightforward, I tried this. This should work. Can you check? This would allow BaseEntity to sport multiple types. Do let me know @RHaughton |
0 replies
Answer selected by
iammukeshm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
However, thinking about it. I guess it should be pretty straightforward, I tried this. This should work. Can you check?
This would allow BaseEntity to sport multiple types. Do let me know @RHaughton