RelationalOwnedNavigationBuilderExtensions.ToJson 方法

定義

多載

ToJson(OwnedNavigationBuilder)

設定關聯性,其中這個實體類型和擁有的實體會對應至資料庫中的 JSON 資料行。

ToJson(OwnedNavigationBuilder, String)

設定關聯性,其中這個實體類型和擁有的實體會對應至資料庫中的 JSON 資料行。

ToJson<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>)

設定關聯性,其中這個實體類型和擁有的實體會對應至資料庫中的 JSON 資料行。

ToJson<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String)

設定關聯性,其中這個實體類型和擁有的實體會對應至資料庫中的 JSON 資料行。

ToJson(OwnedNavigationBuilder)

設定關聯性,其中這個實體類型和擁有的實體會對應至資料庫中的 JSON 資料行。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToJson (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder builder);
static member ToJson : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToJson (builder As OwnedNavigationBuilder) As OwnedNavigationBuilder

參數

builder
OwnedNavigationBuilder

所設定之擁有導覽的產生器。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

這個方法應該只針對指定擁有權結構中的最外部擁有實體指定。 所有擁有的實體都會自動對應至相同的 JSON 資料行。 擁有權仍然必須明確定義。 導覽的名稱將作為 JSON 資料行名稱。

適用於

ToJson(OwnedNavigationBuilder, String)

設定關聯性,其中這個實體類型和擁有的實體會對應至資料庫中的 JSON 資料行。

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

參數

builder
OwnedNavigationBuilder

所設定之擁有導覽的產生器。

jsonColumnName
String

要使用的 JSON 資料行名稱。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

這個方法應該只針對指定擁有權結構中的最外部擁有實體指定。 所有擁有的實體都會自動對應至相同的 JSON 資料行。 擁有權仍然必須明確定義。

適用於

ToJson<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>)

設定關聯性,其中這個實體類型和擁有的實體會對應至資料庫中的 JSON 資料行。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToJson<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> builder) where TOwnerEntity : class where TDependentEntity : class;
static member ToJson : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToJson(Of TOwnerEntity As Class, TDependentEntity As Class) (builder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

類型參數

TOwnerEntity
TDependentEntity

參數

builder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

所設定之擁有導覽的產生器。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

這個方法應該只針對指定擁有權結構中的最外部擁有實體指定。 所有擁有的實體都會自動對應至相同的 JSON 資料行。 擁有權仍然必須明確定義。 導覽的名稱將作為 JSON 資料行名稱。

適用於

ToJson<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String)

設定關聯性,其中這個實體類型和擁有的實體會對應至資料庫中的 JSON 資料行。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToJson<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> builder, string? jsonColumnName) where TOwnerEntity : class where TDependentEntity : class;
static member ToJson : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToJson(Of TOwnerEntity As Class, TDependentEntity As Class) (builder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), jsonColumnName As String) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

類型參數

TOwnerEntity
TDependentEntity

參數

builder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

所設定之擁有導覽的產生器。

jsonColumnName
String

要使用的 JSON 資料行名稱。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

這個方法應該只針對指定擁有權結構中的最外部擁有實體指定。 所有擁有的實體都會自動對應至相同的 JSON 資料行。 擁有權仍然必須明確定義。

適用於