SqlServerTableBuilderExtensions.IsTemporal 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
IsTemporal(OwnedNavigationTableBuilder, Action<OwnedNavigationTemporalTableBuilder>)
將表格設定為暫時式。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder IsTemporal(this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder tableBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder> buildAction);
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder
<Extension()>
Public Function IsTemporal (tableBuilder As OwnedNavigationTableBuilder, buildAction As Action(Of OwnedNavigationTemporalTableBuilder)) As OwnedNavigationTableBuilder
參數
- tableBuilder
- OwnedNavigationTableBuilder
正在組裝桌子的建造者。
- buildAction
- Action<OwnedNavigationTemporalTableBuilder>
一個執行時間表配置的動作。
傳回
同一個建構實例,這樣可以串接多個呼叫。
備註
更多資訊請參閱「使用 EF Core 使用 SQL Server 時序資料表」。
適用於
IsTemporal(OwnedNavigationTableBuilder, Boolean)
將表格設定為暫時式。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder IsTemporal(this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder tableBuilder, bool temporal = true);
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder
<Extension()>
Public Function IsTemporal (tableBuilder As OwnedNavigationTableBuilder, Optional temporal As Boolean = true) As OwnedNavigationTemporalTableBuilder
參數
- tableBuilder
- OwnedNavigationTableBuilder
正在組裝桌子的建造者。
- temporal
- Boolean
一個表示該表格是否為時間性的值。
傳回
一個可以用來配置時序表的物件。
備註
更多資訊請參閱「使用 EF Core 使用 SQL Server 時序資料表」。
適用於
IsTemporal(TableBuilder, Action<TemporalTableBuilder>)
將表格設定為暫時式。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder IsTemporal(this Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder tableBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder> buildAction);
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder
<Extension()>
Public Function IsTemporal (tableBuilder As TableBuilder, buildAction As Action(Of TemporalTableBuilder)) As TableBuilder
參數
- tableBuilder
- TableBuilder
正在組裝桌子的建造者。
- buildAction
- Action<TemporalTableBuilder>
一個執行時間表配置的動作。
傳回
同一個建構實例,這樣可以串接多個呼叫。
備註
更多資訊與範例請參見「使用 EF Core 使用 SQL Server 時間資料表」。
適用於
IsTemporal(TableBuilder, Boolean)
將表格設定為暫時式。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder IsTemporal(this Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder tableBuilder, bool temporal = true);
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder
<Extension()>
Public Function IsTemporal (tableBuilder As TableBuilder, Optional temporal As Boolean = true) As TemporalTableBuilder
參數
- tableBuilder
- TableBuilder
正在組裝桌子的建造者。
- temporal
- Boolean
一個表示該表格是否為時間性的值。
傳回
一個可以用來配置時序表的物件。
備註
更多資訊與範例請參見「使用 EF Core 使用 SQL Server 時間資料表」。
適用於
IsTemporal<TEntity>(TableBuilder<TEntity>, Boolean)
將表格設定為暫時式。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder<TEntity> IsTemporal<TEntity>(this Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TEntity> tableBuilder, bool temporal = true) where TEntity : class;
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'Entity (requires 'Entity : null)> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function IsTemporal(Of TEntity As Class) (tableBuilder As TableBuilder(Of TEntity), Optional temporal As Boolean = true) As TemporalTableBuilder(Of TEntity)
類型參數
- TEntity
正在設定的實體類型。
參數
- tableBuilder
- TableBuilder<TEntity>
正在組裝桌子的建造者。
- temporal
- Boolean
一個表示該表格是否為時間性的值。
傳回
一個可以用來配置時序表的物件。
備註
更多資訊與範例請參見「使用 EF Core 使用 SQL Server 時間資料表」。
適用於
IsTemporal<TEntity>(TableBuilder<TEntity>, Action<TemporalTableBuilder<TEntity>>)
將表格設定為暫時式。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TEntity> IsTemporal<TEntity>(this Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TEntity> tableBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder<TEntity>> buildAction) where TEntity : class;
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'Entity (requires 'Entity : null)> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function IsTemporal(Of TEntity As Class) (tableBuilder As TableBuilder(Of TEntity), buildAction As Action(Of TemporalTableBuilder(Of TEntity))) As TableBuilder(Of TEntity)
類型參數
- TEntity
正在設定的實體類型。
參數
- tableBuilder
- TableBuilder<TEntity>
正在組裝桌子的建造者。
- buildAction
- Action<TemporalTableBuilder<TEntity>>
一個執行時間表配置的動作。
傳回
同一個建構實例,這樣可以串接多個呼叫。
備註
更多資訊與範例請參見「使用 EF Core 使用 SQL Server 時間資料表」。
適用於
IsTemporal<TOwnerEntity,TDependentEntity>(OwnedNavigationTableBuilder<TOwnerEntity, TDependentEntity>, Action<OwnedNavigationTemporalTableBuilder<TOwnerEntity, TDependentEntity>>)
將表格設定為暫時式。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> IsTemporal<TOwnerEntity,TDependentEntity>(this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> tableBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function IsTemporal(Of TOwnerEntity As Class, TDependentEntity As Class) (tableBuilder As OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity), buildAction As Action(Of OwnedNavigationTemporalTableBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity)
類型參數
- TOwnerEntity
擁有該關係的實體類型。
- TDependentEntity
關係的依賴實體類型。
參數
正在組裝桌子的建造者。
- buildAction
- Action<OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity>>
一個執行時間表配置的動作。
傳回
同一個建構實例,這樣可以串接多個呼叫。
備註
更多資訊請參閱「使用 EF Core 使用 SQL Server 時序資料表」。
適用於
IsTemporal<TOwnerEntity,TDependentEntity>(OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>, Boolean)
將表格設定為暫時式。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity> IsTemporal<TOwnerEntity,TDependentEntity>(this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> tableBuilder, bool temporal = true) where TOwnerEntity : class where TDependentEntity : class;
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function IsTemporal(Of TOwnerEntity As Class, TDependentEntity As Class) (tableBuilder As OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity), Optional temporal As Boolean = true) As OwnedNavigationTemporalTableBuilder(Of TOwnerEntity, TDependentEntity)
類型參數
- TOwnerEntity
擁有該關係的實體類型。
- TDependentEntity
關係的依賴實體類型。
參數
正在組裝桌子的建造者。
- temporal
- Boolean
一個表示該表格是否為時間性的值。
傳回
一個可以用來配置時序表的物件。
備註
更多資訊請參閱「使用 EF Core 使用 SQL Server 時序資料表」。