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