ColumnBuilder<TProperty> 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<TProperty> : Microsoft.EntityFrameworkCore.Metadata.Builders.ColumnBuilder, Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty>>
type ColumnBuilder<'Property> = class
    inherit ColumnBuilder
    interface IInfrastructure<PropertyBuilder<'Property>>
Public Class ColumnBuilder(Of TProperty)
Inherits ColumnBuilder
Implements IInfrastructure(Of PropertyBuilder(Of TProperty))

Type Parameters

TProperty
Inheritance
ColumnBuilder<TProperty>
Implements

Constructors

ColumnBuilder<TProperty>(StoreObjectIdentifier, PropertyBuilder<TProperty>)

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.

(Inherited from ColumnBuilder)
Overrides

The table-specific overrides being configured.

(Inherited from ColumnBuilder)

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<TProperty>>.Instance
IInfrastructure<PropertyBuilder>.Instance (Inherited from ColumnBuilder)

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.

UseIdentityColumn<TProperty>(ColumnBuilder<TProperty>, 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