語言

CosmosComplexPropertyExtensions.SetJsonPropertyName 方法

定義

設定該物件在鎖定 Cosmos 時所映射的屬性名稱。

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

參數

property
IMutableComplexProperty

屬性。

name
String

要設定的名字。

適用於