RelationalOwnedNavigationBuilderExtensions.HasJsonPropertyName 方法

定义

重载

HasJsonPropertyName(OwnedNavigationBuilder, String)

配置映射到 JSON 列的实体的导航,将导航映射到特定的 JSON 属性,而不是使用导航名称。

HasJsonPropertyName<TSource,TTarget>(OwnedNavigationBuilder<TSource,TTarget>, String)

配置映射到 JSON 列的实体的导航,将导航映射到特定的 JSON 属性,而不是使用导航名称。

HasJsonPropertyName(OwnedNavigationBuilder, String)

Source:
RelationalOwnedNavigationBuilderExtensions.cs
Source:
RelationalOwnedNavigationBuilderExtensions.cs
Source:
RelationalOwnedNavigationBuilderExtensions.cs

配置映射到 JSON 列的实体的导航,将导航映射到特定的 JSON 属性,而不是使用导航名称。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder HasJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder navigationBuilder, string? name);
static member HasJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function HasJsonPropertyName (navigationBuilder As OwnedNavigationBuilder, name As String) As OwnedNavigationBuilder

参数

navigationBuilder
OwnedNavigationBuilder

要配置的导航的生成器。

name
String

要使用的 JSON 属性名称。

返回

同一生成器实例,以便可以链接多个调用。

适用于

HasJsonPropertyName<TSource,TTarget>(OwnedNavigationBuilder<TSource,TTarget>, String)

Source:
RelationalOwnedNavigationBuilderExtensions.cs
Source:
RelationalOwnedNavigationBuilderExtensions.cs
Source:
RelationalOwnedNavigationBuilderExtensions.cs

配置映射到 JSON 列的实体的导航,将导航映射到特定的 JSON 属性,而不是使用导航名称。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TSource,TTarget> HasJsonPropertyName<TSource,TTarget> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TSource,TTarget> navigationBuilder, string? name) where TSource : class where TTarget : class;
static member HasJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Source, 'arget (requires 'Source : null and 'arget : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Source, 'arget (requires 'Source : null and 'arget : null)> (requires 'Source : null and 'arget : null)
<Extension()>
Public Function HasJsonPropertyName(Of TSource As Class, TTarget As Class) (navigationBuilder As OwnedNavigationBuilder(Of TSource, TTarget), name As String) As OwnedNavigationBuilder(Of TSource, TTarget)

类型参数

TSource
TTarget

参数

navigationBuilder
OwnedNavigationBuilder<TSource,TTarget>

要配置的导航的生成器。

name
String

要使用的 JSON 属性名称。

返回

OwnedNavigationBuilder<TSource,TTarget>

同一生成器实例,以便可以链接多个调用。

适用于