Share via


RelationalComplexTypePrimitiveCollectionBuilderExtensions.IsFixedLength Method

Definition

Overloads

IsFixedLength(ComplexTypePrimitiveCollectionBuilder, Boolean)

Configures the property as capable of storing only fixed-length data, such as strings.

IsFixedLength<TProperty>(ComplexTypePrimitiveCollectionBuilder<TProperty>, Boolean)

Configures the property as capable of storing only fixed-length data, such as strings.

IsFixedLength(ComplexTypePrimitiveCollectionBuilder, Boolean)

Configures the property as capable of storing only fixed-length data, such as strings.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder IsFixedLength (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder primitiveCollectionBuilder, bool fixedLength = true);
static member IsFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder
<Extension()>
Public Function IsFixedLength (primitiveCollectionBuilder As ComplexTypePrimitiveCollectionBuilder, Optional fixedLength As Boolean = true) As ComplexTypePrimitiveCollectionBuilder

Parameters

primitiveCollectionBuilder
ComplexTypePrimitiveCollectionBuilder

The builder for the property being configured.

fixedLength
Boolean

A value indicating whether the property is constrained to fixed length values.

Returns

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

Remarks

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

Applies to

IsFixedLength<TProperty>(ComplexTypePrimitiveCollectionBuilder<TProperty>, Boolean)

Configures the property as capable of storing only fixed-length data, such as strings.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<TProperty> IsFixedLength<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<TProperty> primitiveCollectionBuilder, bool fixedLength = true);
static member IsFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<'Property> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<'Property>
<Extension()>
Public Function IsFixedLength(Of TProperty) (primitiveCollectionBuilder As ComplexTypePrimitiveCollectionBuilder(Of TProperty), Optional fixedLength As Boolean = true) 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.

fixedLength
Boolean

A value indicating whether the property is constrained to fixed length values.

Returns

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

Remarks

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

Applies to