RelationalPropertyExtensions.SetIsFixedLength 方法

定义

重载

SetIsFixedLength(IMutableProperty, Nullable<Boolean>)

设置一个标志,指示属性是否能够仅存储固定长度的数据,例如字符串。

SetIsFixedLength(IConventionProperty, Nullable<Boolean>, Boolean)

设置一个标志,指示属性是否能够仅存储固定长度的数据,例如字符串。

SetIsFixedLength(IMutableProperty, Nullable<Boolean>)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

设置一个标志,指示属性是否能够仅存储固定长度的数据,例如字符串。

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))

参数

property
IMutableProperty

属性。

fixedLength
Nullable<Boolean>

一个值,该值指示属性是否受固定长度值的约束。

适用于

SetIsFixedLength(IConventionProperty, Nullable<Boolean>, Boolean)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

设置一个标志,指示属性是否能够仅存储固定长度的数据,例如字符串。

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)

参数

property
IConventionProperty

属性。

fixedLength
Nullable<Boolean>

一个值,该值指示属性是否受固定长度值的约束。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

配置的值。

适用于