RelationalPrimitiveCollectionBuilderExtensions.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(PrimitiveCollectionBuilder, Boolean) |
Configures the property as capable of storing only fixed-length data, such as strings. |
IsFixedLength<TProperty>(PrimitiveCollectionBuilder<TProperty>, Boolean) |
Configures the property as capable of storing only fixed-length data, such as strings. |
IsFixedLength(PrimitiveCollectionBuilder, Boolean)
Configures the property as capable of storing only fixed-length data, such as strings.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder IsFixedLength (this Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder primitiveCollectionBuilder, bool fixedLength = true);
static member IsFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder
<Extension()>
Public Function IsFixedLength (primitiveCollectionBuilder As PrimitiveCollectionBuilder, Optional fixedLength As Boolean = true) As PrimitiveCollectionBuilder
Parameters
- primitiveCollectionBuilder
- PrimitiveCollectionBuilder
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>(PrimitiveCollectionBuilder<TProperty>, Boolean)
Configures the property as capable of storing only fixed-length data, such as strings.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<TProperty> IsFixedLength<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<TProperty> primitiveCollectionBuilder, bool fixedLength = true);
static member IsFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<'Property> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<'Property>
<Extension()>
Public Function IsFixedLength(Of TProperty) (primitiveCollectionBuilder As PrimitiveCollectionBuilder(Of TProperty), Optional fixedLength As Boolean = true) As PrimitiveCollectionBuilder(Of TProperty)
Type Parameters
- TProperty
The type of the property being configured.
Parameters
- primitiveCollectionBuilder
- PrimitiveCollectionBuilder<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
Entity Framework