EntityTypeBuilder.HasManyBuilder 方法

定義

多載

HasManyBuilder(EntityType, PropertyInfo)

此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

HasManyBuilder(EntityType, String)

此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

HasManyBuilder(EntityType, PropertyInfo)

此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasManyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType relatedEntityType, System.Reflection.PropertyInfo navigationProperty);
abstract member HasManyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasManyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Protected Overridable Function HasManyBuilder (relatedEntityType As EntityType, navigationProperty As PropertyInfo) As InternalRelationshipBuilder

參數

relatedEntityType
Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType

關聯性針對的實體型別。

navigationProperty
PropertyInfo

這個實體上的集合導覽屬性。 如果傳遞 null,則會建立沒有導覽屬性的關聯性。

傳回

Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder

新建立的建立器。

適用於

HasManyBuilder(EntityType, String)

此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasManyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType relatedEntityType, string navigationName);
abstract member HasManyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasManyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Protected Overridable Function HasManyBuilder (relatedEntityType As EntityType, navigationName As String) As InternalRelationshipBuilder

參數

relatedEntityType
Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType

關聯性針對的實體型別。

navigationName
String

這個實體上的集合導覽屬性名稱。 如果傳遞 null,則會建立沒有導覽屬性的關聯性。

傳回

Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder

新建立的建立器。

適用於