SqlServerEntityTypeExtensions.SetPeriodEndPropertyName 方法

定义

重载

SetPeriodEndPropertyName(IMutableEntityType, String)

设置一个值,该值表示映射到临时表的实体的句点结束属性的名称。

SetPeriodEndPropertyName(IConventionEntityType, String, Boolean)

设置一个值,该值表示映射到临时表的实体的句点结束属性的名称。

SetPeriodEndPropertyName(IMutableEntityType, String)

设置一个值,该值表示映射到临时表的实体的句点结束属性的名称。

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

参数

entityType
IMutableEntityType

实体类型。

periodEndPropertyName
String

要设置的值。

适用于

SetPeriodEndPropertyName(IConventionEntityType, String, Boolean)

设置一个值,该值表示映射到临时表的实体的句点结束属性的名称。

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

参数

entityType
IConventionEntityType

实体类型。

periodEndPropertyName
String

要设置的值。

fromDataAnnotation
Boolean

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

返回

配置的值。

适用于