RelationalPrimitiveCollectionBuilderExtensions.IsFixedLength 方法

定義

多載

IsFixedLength(PrimitiveCollectionBuilder, Boolean)

將 屬性設定為只儲存固定長度的資料,例如字串。

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

將 屬性設定為只儲存固定長度的資料,例如字串。

IsFixedLength(PrimitiveCollectionBuilder, Boolean)

將 屬性設定為只儲存固定長度的資料,例如字串。

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

參數

primitiveCollectionBuilder
PrimitiveCollectionBuilder

要設定之屬性的產生器。

fixedLength
Boolean

值,指出屬性是否受限於固定長度值。

傳回

相同的產生器實例,以便鏈結多個組態呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

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

將 屬性設定為只儲存固定長度的資料,例如字串。

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

類型參數

TProperty

正在設定之屬性的型別。

參數

primitiveCollectionBuilder
PrimitiveCollectionBuilder<TProperty>

要設定之屬性的產生器。

fixedLength
Boolean

值,指出屬性是否受限於固定長度值。

傳回

相同的產生器實例,以便鏈結多個組態呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於