Table of Contents

Class TableBuilder<TEntity>

Namespace
Microsoft.EntityFrameworkCore.Metadata.Builders
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Instances of this class are returned from methods when using the Microsoft.EntityFrameworkCore.ModelBuilder API and it is not designed to be directly constructed in your application code.

public class TableBuilder<TEntity> : TableBuilder where TEntity : class

Type Parameters

TEntity

The entity type being configured.

Inheritance
TableBuilder<TEntity>
Inherited Members

Constructors

TableBuilder(string, string, IMutableEntityType)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public TableBuilder(string name, string schema, IMutableEntityType entityType)

Parameters

name string
schema string
entityType IMutableEntityType

Methods

ExcludeFromMigrations(bool)

Configures the table to be ignored by migrations.

public virtual TableBuilder<TEntity> ExcludeFromMigrations(bool excluded = true)

Parameters

excluded bool

A value indicating whether the table should be managed by migrations.

Returns

TableBuilder<TEntity>

The same builder instance so that multiple calls can be chained.