共用方式為


CollectionNavigationBuilder.WithMany(String) 方法

定義

將此設定為多對多關聯性。

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

參數

navigationName
String

這個關聯性另一端的集合導覽屬性名稱。

傳回

要進一步設定關聯性的 物件。

適用於