SqlServerEntityTypeExtensions.SetPeriodStartPropertyName 方法

定义

重载

SetPeriodStartPropertyName(IMutableEntityType, String)

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

SetPeriodStartPropertyName(IConventionEntityType, String, Boolean)

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

SetPeriodStartPropertyName(IMutableEntityType, String)

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

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

参数

entityType
IMutableEntityType

实体类型。

periodStartPropertyName
String

要设置的值。

适用于

SetPeriodStartPropertyName(IConventionEntityType, String, Boolean)

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

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

参数

entityType
IConventionEntityType

实体类型。

periodStartPropertyName
String

要设置的值。

fromDataAnnotation
Boolean

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

返回

配置的值。

适用于