RelationalTypeMappingConfigurationBuilderExtensions.IsFixedLength Method

Definition

Overloads

IsFixedLength(TypeMappingConfigurationBuilder, Boolean)

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

IsFixedLength<TScalar>(TypeMappingConfigurationBuilder<TScalar>, Boolean)

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

IsFixedLength(TypeMappingConfigurationBuilder, Boolean)

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

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

Parameters

scalarBuilder
TypeMappingConfigurationBuilder

The builder for the scalar being configured.

fixedLength
Boolean

A value indicating whether the scalar 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<TScalar>(TypeMappingConfigurationBuilder<TScalar>, Boolean)

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.TypeMappingConfigurationBuilder<TScalar> IsFixedLength<TScalar> (this Microsoft.EntityFrameworkCore.Metadata.Builders.TypeMappingConfigurationBuilder<TScalar> scalarBuilder, bool fixedLength = true);
static member IsFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.TypeMappingConfigurationBuilder<'Scalar> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.TypeMappingConfigurationBuilder<'Scalar>
<Extension()>
Public Function IsFixedLength(Of TScalar) (scalarBuilder As TypeMappingConfigurationBuilder(Of TScalar), Optional fixedLength As Boolean = true) As TypeMappingConfigurationBuilder(Of TScalar)

Type Parameters

TScalar

The type of the scalar being configured.

Parameters

scalarBuilder
TypeMappingConfigurationBuilder<TScalar>

The builder for the scalar being configured.

fixedLength
Boolean

A value indicating whether the scalar 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