Прочетете на английски

Споделяне чрез


CollectionNavigationBuilder Constructors

Definition

Overloads

CollectionNavigationBuilder(InternalRelationshipBuilder)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

CollectionNavigationBuilder(IMutableEntityType, IMutableEntityType, MemberInfo, IMutableForeignKey)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

CollectionNavigationBuilder(IMutableEntityType, IMutableEntityType, String, IMutableForeignKey)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

CollectionNavigationBuilder(EntityType, EntityType, PropertyInfo, InternalRelationshipBuilder)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

CollectionNavigationBuilder(EntityType, EntityType, String, InternalRelationshipBuilder)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

CollectionNavigationBuilder(IMutableEntityType, IMutableEntityType, MemberIdentity, IMutableForeignKey, IMutableSkipNavigation)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

CollectionNavigationBuilder(InternalRelationshipBuilder)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

C#
public CollectionNavigationBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder builder);

Parameters

builder
Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder

Applies to

Entity Framework Core 1.0
Продукт Версии
Entity Framework Core 1.0

CollectionNavigationBuilder(IMutableEntityType, IMutableEntityType, MemberInfo, IMutableForeignKey)

Source:
CollectionNavigationBuilder.cs
Source:
CollectionNavigationBuilder.cs

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

C#
[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);

Parameters

declaringEntityType
IMutableEntityType
relatedEntityType
IMutableEntityType
navigationMemberInfo
MemberInfo
foreignKey
IMutableForeignKey
Attributes

Applies to

Entity Framework Core 3.1 и Entity Framework Core 3.0
Продукт Версии
Entity Framework Core 3.0, 3.1

CollectionNavigationBuilder(IMutableEntityType, IMutableEntityType, String, IMutableForeignKey)

Source:
CollectionNavigationBuilder.cs
Source:
CollectionNavigationBuilder.cs

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

C#
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public CollectionNavigationBuilder (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType declaringEntityType, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType relatedEntityType, string navigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey);

Parameters

declaringEntityType
IMutableEntityType
relatedEntityType
IMutableEntityType
navigationName
String
foreignKey
IMutableForeignKey
Attributes

Applies to

Entity Framework Core 3.1 и Entity Framework Core 3.0
Продукт Версии
Entity Framework Core 3.0, 3.1

CollectionNavigationBuilder(EntityType, EntityType, PropertyInfo, InternalRelationshipBuilder)

Source:
CollectionNavigationBuilder.cs
Source:
CollectionNavigationBuilder.cs

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

C#
public CollectionNavigationBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType declaringEntityType, Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType relatedEntityType, System.Reflection.PropertyInfo navigationProperty, Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder builder);

Parameters

declaringEntityType
Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
relatedEntityType
Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
navigationProperty
PropertyInfo
builder
Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder

Applies to

Entity Framework Core 2.2 и други версии
Продукт Версии
Entity Framework Core 1.1, 2.0, 2.1, 2.2

CollectionNavigationBuilder(EntityType, EntityType, String, InternalRelationshipBuilder)

Source:
CollectionNavigationBuilder.cs
Source:
CollectionNavigationBuilder.cs

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

C#
public CollectionNavigationBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType declaringEntityType, Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType relatedEntityType, string navigationName, Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder builder);

Parameters

declaringEntityType
Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
relatedEntityType
Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
navigationName
String
builder
Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder

Applies to

Entity Framework Core 2.2 и други версии
Продукт Версии
Entity Framework Core 1.1, 2.0, 2.1, 2.2

CollectionNavigationBuilder(IMutableEntityType, IMutableEntityType, MemberIdentity, IMutableForeignKey, IMutableSkipNavigation)

Source:
CollectionNavigationBuilder.cs
Source:
CollectionNavigationBuilder.cs
Source:
CollectionNavigationBuilder.cs
Source:
CollectionNavigationBuilder.cs
Source:
CollectionNavigationBuilder.cs

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

C#
[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);
C#
[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);

Parameters

declaringEntityType
IMutableEntityType
relatedEntityType
IMutableEntityType
navigation
MemberIdentity
foreignKey
IMutableForeignKey
skipNavigation
IMutableSkipNavigation
Attributes

Applies to

Entity Framework Core 9.0 и други версии
Продукт Версии
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0