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

指示配置是否是使用数据注释指定的。

返回

适用于