Let's create the Book entity in ABP Suite. Click the New Category button and add some records: Property name: Name, Property type: stringĬlick the Save and generate button and wait for ABP Suite to create the page.Īfter it finishes, run the web project and go to the Categories page.Then click the Properties tab and add the property below : In the Entity Info tab, type " Category" in the name field. 1- Create the "Category" entityįirst, we create the Category entity. Each book may be in one or many category. We will have a Book entity and a Category entity. Creating a many to many relationship step by step Let's see an example to understand it deeper. This means you will have another database table to keep these connections between entities.
In this scenario, there are multiple records from one entity associated with multiple records from another entity. Then you can add or remove records from the collection. When you create a navigation collection with ABP Suite, you will get a typeahead dropdown to add a record from the dependent record list. Unlike normal properties, these properties do not carry any data but links to other entities.
Navigation CollectionsĪ navigation collection is a type of property on an entity that links multiple instances of a foreign entity. You can select a foreign entity to define a navigation collection in the CRUD Page Generation interface. ABP Suite allows you to create many-to-many relationships.