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

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

返回

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

注解

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

适用于