RelationalElementTypeBuilderExtensions.CanSetFixedLength 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.
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.
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
Entity Framework