Share via


RelationalComplexTypePropertyBuilderExtensions.HasColumnName Method

Definition

Overloads

HasColumnName(ComplexTypePropertyBuilder, String)

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

HasColumnName<TProperty>(ComplexTypePropertyBuilder<TProperty>, String)

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

HasColumnName(ComplexTypePropertyBuilder, String)

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder HasColumnName (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder propertyBuilder, string? name);
static member HasColumnName : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder
<Extension()>
Public Function HasColumnName (propertyBuilder As ComplexTypePropertyBuilder, name As String) As ComplexTypePropertyBuilder

Parameters

propertyBuilder
ComplexTypePropertyBuilder

The builder for the property being configured.

name
String

The name 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

HasColumnName<TProperty>(ComplexTypePropertyBuilder<TProperty>, String)

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

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

Type Parameters

TProperty

The type of the property being configured.

Parameters

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

The builder for the property being configured.

name
String

The name 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