Hello ANZ Team,
I have a customer-contact entity that contains the 1-to-many relationship between my customer and contact entities. This entity only has the PK for the customer and contacts entities. I wanted to add a navigation property to my customer entity against this customer-contact entity on the contact id. The use case is for my customer to have a primary contact from its list of contacts. When I tried this using the Power Tools, under the navigation property, it stops me from generating the code and prompts for assigning a display field. I don't want to add another property just for this since I only need the PKs of the customer and contact entities in my customer-contact entity.
Please help on how to go about this matter.
Thank you.
3 Answer(s)
-
0
Hi @-bitman,
Is this the same issue https://support.aspnetzero.com/QA/Questions/9118/Help-on-Model-migration-generation-Wrong-relation-inferred
-
0
Thank you @ismcagdas. Will this solution be incorporated and implemented in the Power Tools someday?
-
0
Hi @-bitman,
I'm not sure but it seems like a specific use case rather than a commonly used approach. If we get requests about this usage, we may add it to Roadmap.