語言

OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>.ExcludeFromMigrations 方法

定義

設定表格以被遷移忽略。

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

參數

excluded
Boolean

一個表示該資料表是否應該由遷移管理的值。

傳回

同一個建構實例,這樣可以串接多個呼叫。

備註

更多資訊請參閱 資料庫遷移 。

適用於