CollectionCollectionBuilder<TLeftEntity,TRightEntity> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供簡單的 API 來設定多對多關係。
[System.Runtime.CompilerServices.Nullable(0)]
public class CollectionCollectionBuilder<TLeftEntity,TRightEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionCollectionBuilder where TLeftEntity : class where TRightEntity : class
public class CollectionCollectionBuilder<TLeftEntity,TRightEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionCollectionBuilder where TLeftEntity : class where TRightEntity : class
[<System.Runtime.CompilerServices.Nullable(0)>]
type CollectionCollectionBuilder<'LeftEntity, 'RightEntity (requires 'LeftEntity : null and 'RightEntity : null)> = class
inherit CollectionCollectionBuilder
type CollectionCollectionBuilder<'LeftEntity, 'RightEntity (requires 'LeftEntity : null and 'RightEntity : null)> = class
inherit CollectionCollectionBuilder
Public Class CollectionCollectionBuilder(Of TLeftEntity, TRightEntity)
Inherits CollectionCollectionBuilder
類型參數
- TLeftEntity
這段關係中的一種實體類型。
- TRightEntity
這段關係中的一種實體類型。
- 繼承
- 屬性
備註
這個類別的實例會在使用 ModelBuilder API 時從方法回傳,且並非設計成直接在應用程式程式碼中建構。
更多資訊與範例請參閱 建模實體類型與關係 。
建構函式
| 名稱 | Description |
|---|---|
| CollectionCollectionBuilder<TLeftEntity,TRightEntity>(IMutableEntityType, IMutableEntityType, IMutableSkipNavigation, IMutableSkipNavigation) |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 |
屬性
| 名稱 | Description |
|---|---|
| LeftEntityType |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 (繼承來源 CollectionCollectionBuilder) |
| LeftNavigation |
這是關係中涉及的導航之一。 (繼承來源 CollectionCollectionBuilder) |
| ModelBuilder |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 (繼承來源 CollectionCollectionBuilder) |
| RightEntityType |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 (繼承來源 CollectionCollectionBuilder) |
| RightNavigation |
這是關係中涉及的導航之一。 (繼承來源 CollectionCollectionBuilder) |