CosmosEntityTypeExtensions.GetETagProperty 方法

定义

重载

GetETagProperty(IConventionEntityType)

获取此实体上映射到 Cosmos ETag(如果存在)的属性。

GetETagProperty(IEntityType)

获取此实体上映射到 Cosmos ETag(如果存在)的属性。

GetETagProperty(IMutableEntityType)

获取此实体上映射到 Cosmos ETag(如果存在)的属性。

GetETagProperty(IReadOnlyEntityType)

获取此实体上映射到 Cosmos ETag(如果存在)的属性。

GetETagProperty(IConventionEntityType)

获取此实体上映射到 Cosmos ETag(如果存在)的属性。

public static Microsoft.EntityFrameworkCore.Metadata.IConventionProperty? GetETagProperty (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
static member GetETagProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
<Extension()>
Public Function GetETagProperty (entityType As IConventionEntityType) As IConventionProperty

参数

entityType
IConventionEntityType

要获取其 ETag 属性的实体类型。

返回

映射到 etag 的属性;如果没有映射到 ETag 的属性, null 则为 。

适用于

GetETagProperty(IEntityType)

获取此实体上映射到 Cosmos ETag(如果存在)的属性。

public static Microsoft.EntityFrameworkCore.Metadata.IProperty GetETagProperty (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
public static Microsoft.EntityFrameworkCore.Metadata.IProperty? GetETagProperty (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetETagProperty : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IProperty
<Extension()>
Public Function GetETagProperty (entityType As IEntityType) As IProperty

参数

entityType
IEntityType

要获取其 ETag 属性的实体类型。

返回

映射到 etag 的属性;如果没有映射到 ETag 的属性, null 则为 。

适用于

GetETagProperty(IMutableEntityType)

获取此实体上映射到 Cosmos ETag(如果存在)的属性。

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty? GetETagProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
static member GetETagProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function GetETagProperty (entityType As IMutableEntityType) As IMutableProperty

参数

entityType
IMutableEntityType

要获取其 ETag 属性的实体类型。

返回

映射到 etag 的属性;如果没有映射到 ETag 的属性, null 则为 。

适用于

GetETagProperty(IReadOnlyEntityType)

获取此实体上映射到 Cosmos ETag(如果存在)的属性。

public static Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty? GetETagProperty (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
static member GetETagProperty : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty
<Extension()>
Public Function GetETagProperty (entityType As IReadOnlyEntityType) As IReadOnlyProperty

参数

entityType
IReadOnlyEntityType

要获取其 ETag 属性的实体类型。

返回

映射到 ETag 的属性;如果没有映射到 ETag 的属性, null 则为 。

适用于