RelationalPropertyExtensions.SetIsFixedLength 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
SetIsFixedLength(IMutableProperty, Nullable<Boolean>) |
Sets a flag indicating whether the property is capable of storing only fixed-length data, such as strings. |
SetIsFixedLength(IConventionProperty, Nullable<Boolean>, Boolean) |
Sets a flag indicating whether the property is capable of storing only fixed-length data, such as strings. |
SetIsFixedLength(IMutableProperty, Nullable<Boolean>)
Sets a flag indicating whether the property is capable of storing only fixed-length data, such as strings.
public static void SetIsFixedLength (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, bool? fixedLength);
static member SetIsFixedLength : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<bool> -> unit
<Extension()>
Public Sub SetIsFixedLength (property As IMutableProperty, fixedLength As Nullable(Of Boolean))
Parameters
- property
- IMutableProperty
The property.
A value indicating whether the property is constrained to fixed length values.
Applies to
SetIsFixedLength(IConventionProperty, Nullable<Boolean>, Boolean)
Sets a flag indicating whether the property is capable of storing only fixed-length data, such as strings.
public static void SetIsFixedLength (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, bool? fixedLength, bool fromDataAnnotation = false);
public static bool? SetIsFixedLength (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, bool? fixedLength, bool fromDataAnnotation = false);
static member SetIsFixedLength : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<bool> * bool -> unit
static member SetIsFixedLength : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Sub SetIsFixedLength (property As IConventionProperty, fixedLength As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetIsFixedLength (property As IConventionProperty, fixedLength As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)
Parameters
- property
- IConventionProperty
The property.
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
The configured value.
Applies to
Entity Framework