語言

RelationalPropertyBuilderExtensions.IsFixedLength 方法

定義

多載

名稱 Description
IsFixedLength(PropertyBuilder, Boolean)

將屬性配置為僅能儲存固定長度的資料,例如字串。

IsFixedLength(IConventionPropertyBuilder, Nullable<Boolean>, Boolean)

將屬性配置為僅能儲存固定長度的資料,例如字串。

IsFixedLength<TProperty>(PropertyBuilder<TProperty>, Boolean)

將屬性配置為僅能儲存固定長度的資料,例如字串。

IsFixedLength(PropertyBuilder, Boolean)

來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs

將屬性配置為僅能儲存固定長度的資料,例如字串。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder IsFixedLength(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, bool fixedLength = true);
static member IsFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function IsFixedLength (propertyBuilder As PropertyBuilder, Optional fixedLength As Boolean = true) As PropertyBuilder

參數

propertyBuilder
PropertyBuilder

正在配置的物業的建商。

fixedLength
Boolean

一個表示該性質是否受限於固定長度值的值。

傳回

同一個建構器實例,這樣可以串接多個設定呼叫。

備註

更多資訊與範例請參閱 建模實體類型與關係 。

適用於

IsFixedLength(IConventionPropertyBuilder, Nullable<Boolean>, Boolean)

來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs

將屬性配置為僅能儲存固定長度的資料,例如字串。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? IsFixedLength(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, bool? fixedLength, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder IsFixedLength(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, bool? fixedLength, bool fromDataAnnotation = false);
static member IsFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function IsFixedLength (propertyBuilder As IConventionPropertyBuilder, fixedLength As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

參數

propertyBuilder
IConventionPropertyBuilder

正在配置的物業的建商。

fixedLength
Nullable<Boolean>

一個表示該性質是否受限於固定長度值的值。

fromDataAnnotation
Boolean

表示配置是否以資料註解方式指定。

傳回

如果設定是套用,則使用同一個建構者實例, null 否則。

備註

更多資訊與範例請參閱 建模實體類型與關係 。

適用於

IsFixedLength<TProperty>(PropertyBuilder<TProperty>, Boolean)

來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs
來源:
RelationalPropertyBuilderExtensions.cs

將屬性配置為僅能儲存固定長度的資料,例如字串。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> IsFixedLength<TProperty>(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, bool fixedLength = true);
static member IsFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function IsFixedLength(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), Optional fixedLength As Boolean = true) As PropertyBuilder(Of TProperty)

類型參數

TProperty

配置的房產類型。

參數

propertyBuilder
PropertyBuilder<TProperty>

正在配置的物業的建商。

fixedLength
Boolean

一個表示該性質是否受限於固定長度值的值。

傳回

同一個建構器實例,這樣可以串接多個設定呼叫。

備註

更多資訊與範例請參閱 建模實體類型與關係 。

適用於