OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity>.UseHistoryTable 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
UseHistoryTable(String) |
Configures a history table for the entity mapped to a temporal table. |
UseHistoryTable(String, String) |
Configures a history table for the entity mapped to a temporal table. |
UseHistoryTable(String)
Configures a history table for the entity mapped to a temporal table.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity> UseHistoryTable (string name);
override this.UseHistoryTable : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)>
Public Overridable Function UseHistoryTable (name As String) As OwnedNavigationTemporalTableBuilder(Of TOwnerEntity, TDependentEntity)
Parameters
- name
- String
The name of the history table.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Using SQL Server temporal tables with EF Core for more information.
Applies to
UseHistoryTable(String, String)
Configures a history table for the entity mapped to a temporal table.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity> UseHistoryTable (string name, string? schema);
override this.UseHistoryTable : string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)>
Public Overridable Function UseHistoryTable (name As String, schema As String) As OwnedNavigationTemporalTableBuilder(Of TOwnerEntity, TDependentEntity)
Parameters
- name
- String
The name of the history table.
- schema
- String
The schema of the history table.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Using SQL Server temporal tables with EF Core for more information.
Applies to
Entity Framework