RelationalPropertyBuilderExtensions.CanSetIsFixedLength 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 property can be configured as being fixed length or not.
public static bool CanSetIsFixedLength (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, bool? fixedLength, bool fromDataAnnotation = false);
static member CanSetIsFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<bool> * bool -> bool
<Extension()>
Public Function CanSetIsFixedLength (propertyBuilder As IConventionPropertyBuilder, fixedLength As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- propertyBuilder
- IConventionPropertyBuilder
The builder for the property being configured.
A value indicating whether the property is constrained to fixed length values.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the property 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