SqlServerEntityTypeExtensions.SetPeriodEndPropertyName Method

Definition

Overloads

SetPeriodEndPropertyName(IMutableEntityType, String)

Sets a value representing the name of the period end property of the entity mapped to a temporal table.

SetPeriodEndPropertyName(IConventionEntityType, String, Boolean)

Sets a value representing the name of the period end property of the entity mapped to a temporal table.

SetPeriodEndPropertyName(IMutableEntityType, String)

Sets a value representing the name of the period end property of the entity mapped to a temporal table.

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)

Parameters

entityType
IMutableEntityType

The entity type.

periodEndPropertyName
String

The value to set.

Applies to

SetPeriodEndPropertyName(IConventionEntityType, String, Boolean)

Sets a value representing the name of the period end property of the entity mapped to a temporal table.

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

Parameters

entityType
IConventionEntityType

The entity type.

periodEndPropertyName
String

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to