RelationalPropertiesConfigurationBuilderExtensions.HaveColumnType Method

Definition

Overloads

HaveColumnType(PropertiesConfigurationBuilder, String)

Configures the data type of the column that the property maps to when targeting a relational database. This should be the complete type name, including precision, scale, length, etc.

HaveColumnType<TProperty>(PropertiesConfigurationBuilder<TProperty>, String)

Configures the data type of the column that the property maps to when targeting a relational database. This should be the complete type name, including precision, scale, length, etc.

HaveColumnType(PropertiesConfigurationBuilder, String)

Configures the data type of the column that the property maps to when targeting a relational database. This should be the complete type name, including precision, scale, length, etc.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder HaveColumnType (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder propertyBuilder, string typeName);
static member HaveColumnType : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
<Extension()>
Public Function HaveColumnType (propertyBuilder As PropertiesConfigurationBuilder, typeName As String) As PropertiesConfigurationBuilder

Parameters

propertyBuilder
PropertiesConfigurationBuilder

The builder for the property being configured.

typeName
String

The name of the data type of the column.

Returns

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

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

HaveColumnType<TProperty>(PropertiesConfigurationBuilder<TProperty>, String)

Configures the data type of the column that the property maps to when targeting a relational database. This should be the complete type name, including precision, scale, length, etc.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<TProperty> HaveColumnType<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<TProperty> propertyBuilder, string typeName);
static member HaveColumnType : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>
<Extension()>
Public Function HaveColumnType(Of TProperty) (propertyBuilder As PropertiesConfigurationBuilder(Of TProperty), typeName As String) As PropertiesConfigurationBuilder(Of TProperty)

Type Parameters

TProperty

The type of the property being configured.

Parameters

propertyBuilder
PropertiesConfigurationBuilder<TProperty>

The builder for the property being configured.

typeName
String

The name of the data type of the column.

Returns

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

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to