OwnedNavigationTableBuilder.ExcludeFromMigrations(Boolean) 方法

定义

将表配置为由迁移忽略。

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

参数

excluded
Boolean

一个值,该值指示表是否应由迁移管理。

返回

同一生成器实例,以便可以链接多个调用。

注解

有关详细信息 ,请参阅数据库迁移

适用于