RelationalTypeMappingConfigurationBuilderExtensions.IsFixedLength 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
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for