Open Closed

Many to many relationship entities using ABP Suite #615


User avatar
0
LeonTee created
  • ABP Framework version: v3.1.1
  • UI type: Angular

Understand that ABP Suite does not support many-to-many (N:N) relationships when creating Navigation Properties. Our project requires us to support such relationship in our Entities. May I know what is the appropriate way to create such a relationship using ABP Suite?

To use your tutorial as an example, we need to support Tagging in the Book entity.

Book 1=>* Tagging Tagging *=>1 Tag

This would create many to many relationship. Please help to suggest a way to create such entities using ABP framework. If this is not possible, please suggest a way that ABP can support to create such scenarios. Many thanks!

Best regards, Leon


1 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    hi, we use EF Core, so sure you can have many to many relationship. This is not directly related to ABP but EF Core. See https://docs.microsoft.com/en-us/ef/core/modeling/relationships?tabs=fluent-api,fluent-api-simple-key,simple-key#many-to-many

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35