Share via


RelationalComplexPropertyBuilderExtensions.HasColumnType Method

Definition

Overloads

Name Description
HasColumnType(ComplexPropertyBuilder, String)

Configures the column type for the JSON column that stores the complex property.

HasColumnType<TComplex>(ComplexPropertyBuilder<TComplex>, String)

Configures the column type for the JSON column that stores the complex property.

HasColumnType(ComplexPropertyBuilder, String)

Source:
RelationalComplexPropertyBuilderExtensions.cs

Configures the column type for the JSON column that stores the complex property.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder HasColumnType(this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder complexPropertyBuilder, string? columnType);
static member HasColumnType : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
<Extension()>
Public Function HasColumnType (complexPropertyBuilder As ComplexPropertyBuilder, columnType As String) As ComplexPropertyBuilder

Parameters

complexPropertyBuilder
ComplexPropertyBuilder

The builder for the complex property being configured.

columnType
String

The database type for the column, or null to use the database default.

Returns

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

Applies to

HasColumnType<TComplex>(ComplexPropertyBuilder<TComplex>, String)

Source:
RelationalComplexPropertyBuilderExtensions.cs

Configures the column type for the JSON column that stores the complex property.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> HasColumnType<TComplex>(this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> complexPropertyBuilder, string? columnType);
static member HasColumnType : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex>
<Extension()>
Public Function HasColumnType(Of TComplex) (complexPropertyBuilder As ComplexPropertyBuilder(Of TComplex), columnType As String) As ComplexPropertyBuilder(Of TComplex)

Type Parameters

TComplex

Parameters

complexPropertyBuilder
ComplexPropertyBuilder<TComplex>

The builder for the complex property being configured.

columnType
String

The database type for the column, or null to use the database default.

Returns

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

Applies to