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

此关系另一端的集合导航属性的名称。

返回

用于进一步配置关系的 对象。

适用于