RelationalComplexTypePropertyBuilderExtensions.IsFixedLength 方法

定義

多載

IsFixedLength(ComplexTypePropertyBuilder, Boolean)

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

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

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

IsFixedLength(ComplexTypePropertyBuilder, Boolean)

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

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

參數

propertyBuilder
ComplexTypePropertyBuilder

要設定之屬性的產生器。

fixedLength
Boolean

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

傳回

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

備註

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

適用於

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

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

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

類型參數

TProperty

正在設定之屬性的型別。

參數

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

要設定之屬性的產生器。

fixedLength
Boolean

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

傳回

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

備註

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

適用於