SqlServerEntityTypeExtensions.SetIsTemporal 方法

定义

重载

SetIsTemporal(IMutableEntityType, Boolean)

设置一个值,该值指示实体类型是否映射到临时表。

SetIsTemporal(IConventionEntityType, Nullable<Boolean>, Boolean)

设置一个值,该值指示实体类型是否映射到临时表。

SetIsTemporal(IMutableEntityType, Boolean)

设置一个值,该值指示实体类型是否映射到临时表。

public static void SetIsTemporal (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, bool temporal);
static member SetIsTemporal : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * bool -> unit
<Extension()>
Public Sub SetIsTemporal (entityType As IMutableEntityType, temporal As Boolean)

参数

entityType
IMutableEntityType

实体类型。

temporal
Boolean

要设置的值。

适用于

SetIsTemporal(IConventionEntityType, Nullable<Boolean>, Boolean)

设置一个值,该值指示实体类型是否映射到临时表。

public static bool? SetIsTemporal (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool? temporal, bool fromDataAnnotation = false);
static member SetIsTemporal : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Function SetIsTemporal (entityType As IConventionEntityType, temporal As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)

参数

entityType
IConventionEntityType

实体类型。

temporal
Nullable<Boolean>

要设置的值。

fromDataAnnotation
Boolean

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

返回

配置的值。

适用于