OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
這個類別的實例會在使用 ModelBuilder API 時從方法回傳,且並非設計成直接在應用程式程式碼中建構。
[System.Runtime.CompilerServices.Nullable(0)]
public class OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder, Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>> where TOwnerEntity : class where TDependentEntity : class
public class OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder, Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>> where TOwnerEntity : class where TDependentEntity : class
[<System.Runtime.CompilerServices.Nullable(0)>]
type OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> = class
inherit OwnedNavigationTableBuilder
interface IInfrastructure<OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity>>
type OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> = class
inherit OwnedNavigationTableBuilder
interface IInfrastructure<OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity>>
Public Class OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity)
Inherits OwnedNavigationTableBuilder
Implements IInfrastructure(Of OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity))
類型參數
- TOwnerEntity
擁有該關係的實體類型。
- TDependentEntity
關係的依賴實體類型。
- 繼承
- 屬性
- 實作
-
IInfrastructure<OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>>
建構函式
| 名稱 | Description |
|---|---|
| OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>(Nullable<StoreObjectIdentifier>, OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>) |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 |
屬性
| 名稱 | Description |
|---|---|
| Metadata |
正在設定的實體類型。 (繼承來源 OwnedNavigationTableBuilder) |
| Name |
指定的表格名稱。 (繼承來源 OwnedNavigationTableBuilder) |
| Schema |
指定的表格結構。 (繼承來源 OwnedNavigationTableBuilder) |
| StoreObject |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 (繼承來源 OwnedNavigationTableBuilder) |
方法
| 名稱 | Description |
|---|---|
| ExcludeFromMigrations(Boolean) |
設定表格以被遷移忽略。 |
| GetStoreObjectIdentifier() |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 (繼承來源 OwnedNavigationTableBuilder) |
| HasCheckConstraint(String, String) |
在針對關聯式資料庫時,配置資料庫檢查約束。 (繼承來源 OwnedNavigationTableBuilder) |
| HasComment(String) |
配置一個評論以套用到表格 |
| HasTrigger(String) |
在資料表上設定資料庫觸發器。 (繼承來源 OwnedNavigationTableBuilder) |
| Property(String) |
將屬性映射到目前資料表的欄位,並回傳一個物件,若該屬性被映射到多個資料表,該物件可用於提供特定資料表的設定。 (繼承來源 OwnedNavigationTableBuilder) |
| Property<TProperty>(Expression<Func<TDependentEntity,TProperty>>) |
將屬性映射到目前資料表的欄位,並回傳一個物件,若該屬性被映射到多個資料表,該物件可用於提供特定資料表的設定。 |
| Property<TProperty>(String) |
將屬性映射到目前資料表的欄位,並回傳一個物件,若該屬性被映射到多個資料表,該物件可用於提供特定資料表的設定。 (繼承來源 OwnedNavigationTableBuilder) |
明確介面實作
| 名稱 | Description |
|---|---|
| IInfrastructure<OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>>.Instance |
這個類別的實例會在使用 ModelBuilder API 時從方法回傳,且並非設計成直接在應用程式程式碼中建構。 |
| IInfrastructure<OwnedNavigationBuilder>.Instance |
這個類別的實例會在使用 ModelBuilder API 時從方法回傳,且並非設計成直接在應用程式程式碼中建構。 (繼承來源 OwnedNavigationTableBuilder) |