RelationalComplexPropertyBuilderExtensions.HasColumnType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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)
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.