OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
這個類別的實例會在使用 ModelBuilder API 時從方法回傳,且並非設計成直接在應用程式程式碼中建構。
[System.Runtime.CompilerServices.Nullable(0)]
public class OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder where TOwnerEntity : class where TDependentEntity : class
public class OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder where TOwnerEntity : class where TDependentEntity : class
[<System.Runtime.CompilerServices.Nullable(0)>]
type OwnedNavigationTemporalTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> = class
inherit OwnedNavigationTemporalTableBuilder
type OwnedNavigationTemporalTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> = class
inherit OwnedNavigationTemporalTableBuilder
Public Class OwnedNavigationTemporalTableBuilder(Of TOwnerEntity, TDependentEntity)
Inherits OwnedNavigationTemporalTableBuilder
類型參數
- TOwnerEntity
擁有該關係的實體類型。
- TDependentEntity
關係的依賴實體類型。
- 繼承
-
OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity>
- 屬性
建構函式
| 名稱 | Description |
|---|---|
| OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder) |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 |
方法
| 名稱 | Description |
|---|---|
| HasPeriodEnd(Expression<Func<TDependentEntity,DateTime>>) |
回傳一個物件,可用於設定映射到時序資料表的實體類型中的週期結束屬性。 |
| HasPeriodEnd(String) |
回傳一個物件,可用於設定映射到時序資料表的實體類型中的週期結束屬性。 (繼承來源 OwnedNavigationTemporalTableBuilder) |
| HasPeriodStart(Expression<Func<TDependentEntity,DateTime>>) |
回傳一個物件,可用於設定對應到時序資料表的實體類型的週期起始屬性。 |
| HasPeriodStart(String) |
回傳一個物件,可用於設定對應到時序資料表的實體類型的週期起始屬性。 (繼承來源 OwnedNavigationTemporalTableBuilder) |
| UseHistoryTable(String, String) |
配置一個將實體映射到時間表的歷史表。 |
| UseHistoryTable(String) |
配置一個將實體映射到時間表的歷史表。 |