CosmosPropertyExtensions.SetPropertyName 方法

定義

多載

SetPropertyName(IMutableProperty, String)

設定以 Cosmos 為目標時所使用的屬性名稱。

SetPropertyName(IConventionProperty, String, Boolean)

設定以 Cosmos 為目標時所使用的屬性名稱。

SetPropertyName(IMutableProperty, String)

設定以 Cosmos 為目標時所使用的屬性名稱。

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

參數

property
IMutableProperty

屬性。

name
String

要設定的名稱。

適用於

SetPropertyName(IConventionProperty, String, Boolean)

設定以 Cosmos 為目標時所使用的屬性名稱。

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

參數

property
IConventionProperty

屬性。

name
String

要設定的名稱。

fromDataAnnotation
Boolean

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

適用於