次の方法で共有


CosmosEntityTypeExtensions.SetETagPropertyName メソッド

定義

オーバーロード

SetETagPropertyName(IMutableEntityType, String)

ETag キーの格納に使用するプロパティの名前を設定します。

SetETagPropertyName(IConventionEntityType, String, Boolean)

ETag の格納に使用するプロパティの名前を設定します。

SetETagPropertyName(IMutableEntityType, String)

ETag キーの格納に使用するプロパティの名前を設定します。

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

パラメーター

entityType
IMutableEntityType

etag プロパティ名を設定するエンティティ型。

name
String

設定する名前。

適用対象

SetETagPropertyName(IConventionEntityType, String, Boolean)

ETag の格納に使用するプロパティの名前を設定します。

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

パラメーター

entityType
IConventionEntityType

ETag プロパティ名を設定するエンティティ型。

name
String

設定する名前。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

適用対象