Share via


ColumnBuilder 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 ColumnBuilder : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder>
type ColumnBuilder = class
    interface IInfrastructure<PropertyBuilder>
Public Class ColumnBuilder
Implements IInfrastructure(Of PropertyBuilder)
Inheritance
ColumnBuilder
Derived
Implements

Constructors

ColumnBuilder(StoreObjectIdentifier, PropertyBuilder)

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

InternalOverrides

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.

Overrides

The table-specific overrides being configured.

Methods

HasAnnotation(String, Object)

Adds or updates an annotation on the property for a specific table. If an annotation with the key specified in annotation already exists, its value will be updated.

HasColumnName(String)

Configures the column that the property maps to when targeting a relational database.

Explicit Interface Implementations

IInfrastructure<PropertyBuilder>.Instance

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.

UseIdentityColumn(ColumnBuilder, Int64, Int32)

Configures the key column to use the SQL Server IDENTITY feature to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

Applies to