Share via


RelationalElementTypeBuilderExtensions.CanSetFixedLength Method

Definition

Returns a value indicating whether the elements can be configured as being fixed length or not.

public static bool CanSetFixedLength (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionElementTypeBuilder elementTypeBuilder, bool? fixedLength, bool fromDataAnnotation = false);
static member CanSetFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionElementTypeBuilder * Nullable<bool> * bool -> bool
<Extension()>
Public Function CanSetFixedLength (elementTypeBuilder As IConventionElementTypeBuilder, fixedLength As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

elementTypeBuilder
IConventionElementTypeBuilder

builder for the elements being configured.

fixedLength
Nullable<Boolean>

A value indicating whether the elements are constrained to fixed length values.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the elements can be configured as being fixed length or not.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to