✅ [solved] efcore owned entity issue
Unable to create a 'DbContext' of type 'DatabaseContext'. The exception 'The keys {'BId'} on 'C' and {'Id'} on 'B' are both mapped to 'B.PK_B', but with different columns ({'BId'} and {'Id'}).' was thrown while attempting to create an instance.
6 Replies
how would a key on only B.Id work since you say OwnsMany
A looks like this
B.Id is always unique so it can be the only key afaik
thanks
$close
If you have no further questions, please use /close to mark the forum thread as answered