RelationalTypeMappingConfigurationBuilderExtensions.IsFixedLength 方法

定義

多載

IsFixedLength(TypeMappingConfigurationBuilder, Boolean)

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

IsFixedLength<TScalar>(TypeMappingConfigurationBuilder<TScalar>, Boolean)

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

IsFixedLength(TypeMappingConfigurationBuilder, Boolean)

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

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

參數

scalarBuilder
TypeMappingConfigurationBuilder

要設定之純量的產生器。

fixedLength
Boolean

值,指出純量是否受限於固定長度值。

傳回

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

備註

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

適用於

IsFixedLength<TScalar>(TypeMappingConfigurationBuilder<TScalar>, Boolean)

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.TypeMappingConfigurationBuilder<TScalar> IsFixedLength<TScalar> (this Microsoft.EntityFrameworkCore.Metadata.Builders.TypeMappingConfigurationBuilder<TScalar> scalarBuilder, bool fixedLength = true);
static member IsFixedLength : Microsoft.EntityFrameworkCore.Metadata.Builders.TypeMappingConfigurationBuilder<'Scalar> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.TypeMappingConfigurationBuilder<'Scalar>
<Extension()>
Public Function IsFixedLength(Of TScalar) (scalarBuilder As TypeMappingConfigurationBuilder(Of TScalar), Optional fixedLength As Boolean = true) As TypeMappingConfigurationBuilder(Of TScalar)

類型參數

TScalar

正在設定之純量的類型。

參數

scalarBuilder
TypeMappingConfigurationBuilder<TScalar>

要設定之純量的產生器。

fixedLength
Boolean

值,指出純量是否受限於固定長度值。

傳回

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

備註

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

適用於