RelationalPropertiesConfigurationBuilderExtensions.AreFixedLength Method

Definition

Overloads

AreFixedLength(PropertiesConfigurationBuilder, Boolean)

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

AreFixedLength<TProperty>(PropertiesConfigurationBuilder<TProperty>, Boolean)

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

AreFixedLength(PropertiesConfigurationBuilder, Boolean)

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

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

Parameters

propertyBuilder
PropertiesConfigurationBuilder

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

AreFixedLength<TProperty>(PropertiesConfigurationBuilder<TProperty>, Boolean)

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<TProperty> AreFixedLength<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<TProperty> propertyBuilder, bool fixedLength = true);
static member AreFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>
<Extension()>
Public Function AreFixedLength(Of TProperty) (propertyBuilder As PropertiesConfigurationBuilder(Of TProperty), Optional fixedLength As Boolean = true) As PropertiesConfigurationBuilder(Of TProperty)

Type Parameters

TProperty

The type of the property being configured.

Parameters

propertyBuilder
PropertiesConfigurationBuilder<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