Class TableBuilder
- 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
- Inheritance
-
TableBuilder
- Derived
- 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
Methods
ExcludeFromMigrations(bool)
Configures the table to be ignored by migrations.
public virtual TableBuilder ExcludeFromMigrations(bool excluded = true)
Parameters
excluded
boolA value indicating whether the table should be managed by migrations.
Returns
- TableBuilder
The same builder instance so that multiple calls can be chained.