TableBuilder<TEntity> Class

Definition

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

public class TableBuilder<TEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder where TEntity : class
public class TableBuilder<TEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder, Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity>> where TEntity : class
type TableBuilder<'Entity (requires 'Entity : null)> = class
    inherit TableBuilder
type TableBuilder<'Entity (requires 'Entity : null)> = class
    inherit TableBuilder
    interface IInfrastructure<EntityTypeBuilder<'Entity>>
Public Class TableBuilder(Of TEntity)
Inherits TableBuilder
Public Class TableBuilder(Of TEntity)
Inherits TableBuilder
Implements IInfrastructure(Of EntityTypeBuilder(Of TEntity))

Type Parameters

TEntity

The entity type being configured.

Inheritance
TableBuilder<TEntity>
Implements

Constructors

TableBuilder<TEntity>(Nullable<StoreObjectIdentifier>, EntityTypeBuilder<TEntity>)

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.

TableBuilder<TEntity>(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.

Properties

Metadata

The entity type being configured.

(Inherited from TableBuilder)
Name

The specified table name.

(Inherited from TableBuilder)
Schema

The specified table schema.

(Inherited from TableBuilder)
StoreObject

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.

(Inherited from TableBuilder)

Methods

ExcludeFromMigrations(Boolean)

Configures the table to be ignored by migrations.

GetStoreObjectIdentifier()

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.

(Inherited from TableBuilder)
HasCheckConstraint(String, String)

Configures a database check constraint when targeting a relational database.

(Inherited from TableBuilder)
HasComment(String)

Configures a comment to be applied to the table

HasComment(String)

Configures a comment to be applied to the table

(Inherited from TableBuilder)
HasTrigger(String)

Configures a database trigger on the table.

(Inherited from TableBuilder)
Property(String)

Maps the property to a column on the current table and returns an object that can be used to provide table-specific configuration if the property is mapped to more than one table.

(Inherited from TableBuilder)
Property<TProperty>(Expression<Func<TEntity,TProperty>>)

Maps the property to a column on the current table and returns an object that can be used to provide table-specific configuration if the property is mapped to more than one table.

Property<TProperty>(String)

Maps the property to a column on the current table and returns an object that can be used to provide table-specific configuration if the property is mapped to more than one table.

(Inherited from TableBuilder)

Explicit Interface Implementations

IInfrastructure<EntityTypeBuilder<TEntity>>.Instance
IInfrastructure<EntityTypeBuilder>.Instance (Inherited from TableBuilder)

Extension Methods

GetInfrastructure<T>(IInfrastructure<T>)

Gets the value from a property that is being hidden using IInfrastructure<T>.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

UseSqlReturningClause(TableBuilder, Boolean)

Configures whether to use the SQL RETURNING clause when saving changes to the table. The RETURNING clause is incompatible with certain Sqlite features, such as virtual tables or tables with AFTER triggers.

UseSqlReturningClause<TEntity>(TableBuilder<TEntity>, Boolean)

Configures whether to use the SQL RETURNING clause when saving changes to the table. The RETURNING clause is incompatible with certain Sqlite features, such as virtual tables or tables with AFTER triggers.

IsMemoryOptimized(TableBuilder, Boolean)

Configures the table that the entity maps to when targeting SQL Server as memory-optimized.

IsMemoryOptimized<TEntity>(TableBuilder<TEntity>, Boolean)

Configures the table that the entity maps to when targeting SQL Server as memory-optimized.

IsTemporal(TableBuilder, Action<TemporalTableBuilder>)

Configures the table as temporal.

IsTemporal(TableBuilder, Boolean)

Configures the table as temporal.

IsTemporal<TEntity>(TableBuilder<TEntity>, Action<TemporalTableBuilder<TEntity>>)

Configures the table as temporal.

IsTemporal<TEntity>(TableBuilder<TEntity>, Boolean)

Configures the table as temporal.

UseSqlOutputClause(TableBuilder, Boolean)

Configures whether to use the SQL OUTPUT clause when saving changes to the table. The OUTPUT clause is incompatible with certain SQL Server features, such as tables with triggers.

UseSqlOutputClause<TEntity>(TableBuilder<TEntity>, Boolean)

Configures whether to use the SQL OUTPUT clause when saving changes to the table. The OUTPUT clause is incompatible with certain SQL Server features, such as tables with triggers.

Applies to