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? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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