Open Leon99 opened 1 week ago
Hi, it was a design decision that fit the original use case I had long ago and now I’m stuck with it. I plan to abstract it out but it involves changes almost everywhere in the code. It also makes using the library messier since you have to pass your key around everywhere.
For EFCore purposes there are value conversions which can help: https://learn.microsoft.com/en-us/ef/core/modeling/value-conversions
you have to pass your key around everywhere
Could you give an example? I’m thinking of making the change myself, but don’t want to end up introducing another issue or maintaining a separate fork. Would you suggest using EF value conversions instead?
It looks like
IsMultiTenant()
is hard-coded to usestring
for TenantId column. I'm curious as to why not use TKey instead? In most cases I'd rather useGuid
for storing tenant Ids.