语言

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

要设置的名称。

适用于