语言

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

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

返回

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

注解

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

适用于