CollectionNavigationBuilder<TEntity,TRelatedEntity> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CollectionNavigationBuilder<TEntity,TRelatedEntity>(InternalRelationshipBuilder)
此 API 支援 Entity Framework Core 基礎結構,並不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。
public CollectionNavigationBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder builder);
new Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> : Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
Public Sub New (builder As InternalRelationshipBuilder)
參數
- builder
- Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
適用於
CollectionNavigationBuilder<TEntity,TRelatedEntity>(IMutableEntityType, IMutableEntityType, MemberInfo, IMutableForeignKey)
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不會有任何通知。 您應該只在程式碼中直接使用它,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public CollectionNavigationBuilder (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType declaringEntityType, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType relatedEntityType, System.Reflection.MemberInfo navigationMemberInfo, Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
Public Sub New (declaringEntityType As IMutableEntityType, relatedEntityType As IMutableEntityType, navigationMemberInfo As MemberInfo, foreignKey As IMutableForeignKey)
參數
- declaringEntityType
- IMutableEntityType
- relatedEntityType
- IMutableEntityType
- navigationMemberInfo
- MemberInfo
- foreignKey
- IMutableForeignKey
- 屬性
適用於
CollectionNavigationBuilder<TEntity,TRelatedEntity>(IMutableEntityType, IMutableEntityType, String, IMutableForeignKey)
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不會有任何通知。 您應該只在程式碼中直接使用它,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public CollectionNavigationBuilder (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType declaringEntityType, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType relatedEntityType, string navigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string * Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
Public Sub New (declaringEntityType As IMutableEntityType, relatedEntityType As IMutableEntityType, navigationName As String, foreignKey As IMutableForeignKey)
參數
- declaringEntityType
- IMutableEntityType
- relatedEntityType
- IMutableEntityType
- navigationName
- String
- foreignKey
- IMutableForeignKey
- 屬性
適用於
CollectionNavigationBuilder<TEntity,TRelatedEntity>(EntityType, EntityType, PropertyInfo, InternalRelationshipBuilder)
此 API 支援 Entity Framework Core 基礎結構,並不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。
public CollectionNavigationBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType declaringEntityType, Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType relatedEntityType, System.Reflection.PropertyInfo navigationProperty, Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder builder);
new Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * System.Reflection.PropertyInfo * Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
Public Sub New (declaringEntityType As EntityType, relatedEntityType As EntityType, navigationProperty As PropertyInfo, builder As InternalRelationshipBuilder)
參數
- declaringEntityType
- Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
- relatedEntityType
- Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
- navigationProperty
- PropertyInfo
- builder
- Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
適用於
CollectionNavigationBuilder<TEntity,TRelatedEntity>(EntityType, EntityType, String, InternalRelationshipBuilder)
此 API 支援 Entity Framework Core 基礎結構,並不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。
public CollectionNavigationBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType declaringEntityType, Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType relatedEntityType, string navigationName, Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder builder);
new Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
Public Sub New (declaringEntityType As EntityType, relatedEntityType As EntityType, navigationName As String, builder As InternalRelationshipBuilder)
參數
- declaringEntityType
- Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
- relatedEntityType
- Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
- navigationName
- String
- builder
- Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
適用於
CollectionNavigationBuilder<TEntity,TRelatedEntity>(IMutableEntityType, IMutableEntityType, MemberIdentity, IMutableForeignKey, IMutableSkipNavigation)
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不會有任何通知。 您應該只在程式碼中直接使用它,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public CollectionNavigationBuilder (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType declaringEntityType, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType relatedEntityType, Microsoft.EntityFrameworkCore.Metadata.MemberIdentity navigation, Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey, Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation skipNavigation);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public CollectionNavigationBuilder (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType declaringEntityType, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType relatedEntityType, Microsoft.EntityFrameworkCore.Metadata.MemberIdentity navigation, Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey? foreignKey, Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation? skipNavigation);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.MemberIdentity * Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey * Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
Public Sub New (declaringEntityType As IMutableEntityType, relatedEntityType As IMutableEntityType, navigation As MemberIdentity, foreignKey As IMutableForeignKey, skipNavigation As IMutableSkipNavigation)
參數
- declaringEntityType
- IMutableEntityType
- relatedEntityType
- IMutableEntityType
- navigation
- MemberIdentity
- foreignKey
- IMutableForeignKey
- skipNavigation
- IMutableSkipNavigation
- 屬性