SqlServerEntityTypeExtensions.SetPeriodStartPropertyName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetPeriodStartPropertyName(IMutableEntityType, String) |
Sets a value representing the name of the period start property of the entity mapped to a temporal table. |
SetPeriodStartPropertyName(IConventionEntityType, String, Boolean) |
Sets a value representing the name of the period start property of the entity mapped to a temporal table. |
SetPeriodStartPropertyName(IMutableEntityType, String)
Sets a value representing the name of the period start property of the entity mapped to a temporal table.
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)
Parameters
- entityType
- IMutableEntityType
The entity type.
- periodStartPropertyName
- String
The value to set.
Applies to
SetPeriodStartPropertyName(IConventionEntityType, String, Boolean)
Sets a value representing the name of the period start property of the entity mapped to a temporal table.
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
Parameters
- entityType
- IConventionEntityType
The entity type.
- periodStartPropertyName
- String
The value to set.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
Entity Framework