共用方式為


TableBuilder.ExcludeFromMigrations(Boolean) 方法

定義

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder ExcludeFromMigrations (bool excluded = true);
abstract member ExcludeFromMigrations : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder
override this.ExcludeFromMigrations : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder
Public Overridable Function ExcludeFromMigrations (Optional excluded As Boolean = true) As TableBuilder

參數

excluded
Boolean

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

傳回

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

備註

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

適用於