RelationalComplexTypePrimitiveCollectionBuilderExtensions.IsFixedLength 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
IsFixedLength(ComplexTypePrimitiveCollectionBuilder, Boolean) |
將 屬性設定為只能儲存固定長度的資料,例如字串。 |
IsFixedLength<TProperty>(ComplexTypePrimitiveCollectionBuilder<TProperty>, Boolean) |
將 屬性設定為只能儲存固定長度的資料,例如字串。 |
IsFixedLength(ComplexTypePrimitiveCollectionBuilder, Boolean)
將 屬性設定為只能儲存固定長度的資料,例如字串。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder IsFixedLength (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder primitiveCollectionBuilder, bool fixedLength = true);
static member IsFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder
<Extension()>
Public Function IsFixedLength (primitiveCollectionBuilder As ComplexTypePrimitiveCollectionBuilder, Optional fixedLength As Boolean = true) As ComplexTypePrimitiveCollectionBuilder
參數
- primitiveCollectionBuilder
- ComplexTypePrimitiveCollectionBuilder
要設定之屬性的產生器。
- fixedLength
- Boolean
值,指出屬性是否受限於固定長度值。
傳回
相同的產生器實例,以便鏈結多個組態呼叫。
備註
如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。
適用於
IsFixedLength<TProperty>(ComplexTypePrimitiveCollectionBuilder<TProperty>, Boolean)
將 屬性設定為只能儲存固定長度的資料,例如字串。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<TProperty> IsFixedLength<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<TProperty> primitiveCollectionBuilder, bool fixedLength = true);
static member IsFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<'Property> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<'Property>
<Extension()>
Public Function IsFixedLength(Of TProperty) (primitiveCollectionBuilder As ComplexTypePrimitiveCollectionBuilder(Of TProperty), Optional fixedLength As Boolean = true) As ComplexTypePrimitiveCollectionBuilder(Of TProperty)
類型參數
- TProperty
正在設定之屬性的型別。
參數
- primitiveCollectionBuilder
- ComplexTypePrimitiveCollectionBuilder<TProperty>
要設定之屬性的產生器。
- fixedLength
- Boolean
值,指出屬性是否受限於固定長度值。
傳回
相同的產生器實例,以便鏈結多個組態呼叫。
備註
如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。