Share via


RelationalComplexTypePrimitiveCollectionBuilderExtensions.HasComment Method

Definition

Overloads

HasComment(ComplexTypePrimitiveCollectionBuilder, String)

Configures a comment to be applied to the column

HasComment<TProperty>(ComplexTypePrimitiveCollectionBuilder<TProperty>, String)

Configures a comment to be applied to the column

HasComment(ComplexTypePrimitiveCollectionBuilder, String)

Configures a comment to be applied to the column

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder HasComment (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder primitiveCollectionBuilder, string? comment);
static member HasComment : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder
<Extension()>
Public Function HasComment (primitiveCollectionBuilder As ComplexTypePrimitiveCollectionBuilder, comment As String) As ComplexTypePrimitiveCollectionBuilder

Parameters

primitiveCollectionBuilder
ComplexTypePrimitiveCollectionBuilder

The builder for the property being configured.

comment
String

The comment for 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

HasComment<TProperty>(ComplexTypePrimitiveCollectionBuilder<TProperty>, String)

Configures a comment to be applied to the column

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<TProperty> HasComment<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<TProperty> primitiveCollectionBuilder, string? comment);
static member HasComment : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<'Property>
<Extension()>
Public Function HasComment(Of TProperty) (primitiveCollectionBuilder As ComplexTypePrimitiveCollectionBuilder(Of TProperty), comment As String) As ComplexTypePrimitiveCollectionBuilder(Of TProperty)

Type Parameters

TProperty

The type of the property being configured.

Parameters

primitiveCollectionBuilder
ComplexTypePrimitiveCollectionBuilder<TProperty>

The builder for the property being configured.

comment
String

The comment for 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