ReferenceNavigationBuilder.WithOneBuilder 方法

定义

重载

WithOneBuilder(PropertyInfo)

此 API 支持 Entity Framework Core 基础结构,不应直接从代码使用。 将来的版本中可能会更改或删除此 API。

WithOneBuilder(MemberInfo)

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

WithOneBuilder(String)

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

WithOneBuilder(PropertyInfo)

Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs

此 API 支持 Entity Framework Core 基础结构,不应直接从代码使用。 将来的版本中可能会更改或删除此 API。

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

参数

navigationProperty
PropertyInfo

此关系另一端的引用导航属性。 如果为 null,则关系的另一端没有导航属性。

返回

Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder

用于进一步配置关系的内部生成器。

适用于

WithOneBuilder(MemberInfo)

Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder WithOneBuilder (System.Reflection.MemberInfo navigationMemberInfo);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder WithOneBuilder (System.Reflection.MemberInfo navigationMemberInfo);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder WithOneBuilder (System.Reflection.MemberInfo? navigationMemberInfo);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member WithOneBuilder : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.WithOneBuilder : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member WithOneBuilder : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
override this.WithOneBuilder : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
Protected Overridable Function WithOneBuilder (navigationMemberInfo As MemberInfo) As InternalRelationshipBuilder
Protected Overridable Function WithOneBuilder (navigationMemberInfo As MemberInfo) As InternalForeignKeyBuilder

参数

navigationMemberInfo
MemberInfo

返回

Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
属性

适用于

WithOneBuilder(String)

Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs
Source:
ReferenceNavigationBuilder.cs

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder WithOneBuilder (string navigationName);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder WithOneBuilder (string navigationName);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder WithOneBuilder (string navigationName);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder WithOneBuilder (string? navigationName);
abstract member WithOneBuilder : string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.WithOneBuilder : string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member WithOneBuilder : string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.WithOneBuilder : string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member WithOneBuilder : string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
override this.WithOneBuilder : string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
Protected Overridable Function WithOneBuilder (navigationName As String) As InternalRelationshipBuilder
Protected Overridable Function WithOneBuilder (navigationName As String) As InternalForeignKeyBuilder

参数

navigationName
String

此关系另一端的引用导航属性的名称。 如果为 null,则关系的另一端没有导航属性。

返回

Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder

用于进一步配置关系的内部生成器。

属性

适用于