SqlServerEntityTypeBuilderExtensions.CanSetHistoryTableSchema Method

Definition

Returns a value indicating whether the mapped table can have history table schema.

public static bool CanSetHistoryTableSchema (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string? schema, bool fromDataAnnotation = false);
static member CanSetHistoryTableSchema : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * string * bool -> bool
<Extension()>
Public Function CanSetHistoryTableSchema (entityTypeBuilder As IConventionEntityTypeBuilder, schema As String, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

entityTypeBuilder
IConventionEntityTypeBuilder

The builder for the entity type being configured.

schema
String

The schema of the history table.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the mapped table can have history table schema.

Remarks

See Using SQL Server temporal tables with EF Core for more information and examples.

Applies to