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

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

返回

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

注解

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

适用于