ReferenceNavigationBuilder.WithMany(String) Method


Configures this as a one-to-many relationship.

Note that calling this method with no parameters will explicitly configure this side of the relationship to use no navigation property, even if such a property exists on the entity type. If the navigation property is to be used, then it must be specified.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder WithMany (string collection = default);
abstract member WithMany : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder
override this.WithMany : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder
Public Overridable Function WithMany (Optional collection As String = Nothing) As ReferenceCollectionBuilder



The name of the collection navigation property on the other end of this relationship. If null or not specified, there is no navigation property on the other end of the relationship.



An object to further configure the relationship.

Applies to