RelationalPropertyExtensions.SetIsFixedLength Method

Definition

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.

fixedLength
Nullable<Boolean>

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.

fixedLength
Nullable<Boolean>

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