共用方式為


OwnedNavigationSplitTableBuilder<TOwnerEntity,TDependentEntity>.ExcludeFromMigrations 方法

定義

設定移轉要忽略的資料表。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitTableBuilder<TOwnerEntity,TDependentEntity> ExcludeFromMigrations (bool excluded = true);
override this.ExcludeFromMigrations : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)>
Public Overridable Function ExcludeFromMigrations (Optional excluded As Boolean = true) As OwnedNavigationSplitTableBuilder(Of TOwnerEntity, TDependentEntity)

參數

excluded
Boolean

值,指出資料表是否應該由移轉管理。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊 ,請參閱資料庫移轉

適用於