RelationalPropertyExtensions.SetJsonPropertyName 方法

定義

多載

SetJsonPropertyName(IMutableProperty, String)

設定對應至 JSON 資料行之實體的指定屬性所使用的 JSON 屬性名稱值。

SetJsonPropertyName(IConventionProperty, String, Boolean)

設定對應至 JSON 資料行之實體的指定屬性所使用的 JSON 屬性名稱值。

SetJsonPropertyName(IMutableProperty, String)

設定對應至 JSON 資料行之實體的指定屬性所使用的 JSON 屬性名稱值。

public static void SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? name);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetJsonPropertyName (property As IMutableProperty, name As String)

參數

property
IMutableProperty

屬性。

name
String

要使用的名稱。

適用於

SetJsonPropertyName(IConventionProperty, String, Boolean)

設定對應至 JSON 資料行之實體的指定屬性所使用的 JSON 屬性名稱值。

public static string? SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? name, bool fromDataAnnotation = false);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Function SetJsonPropertyName (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false) As String

參數

property
IConventionProperty

屬性。

name
String

要使用的名稱。

fromDataAnnotation
Boolean

指出是否已使用資料批註指定組態。

傳回

已設定的值。

適用於