語言

RelationalPropertiesConfigurationBuilderExtensions.AreFixedLength 方法

定義

多載

名稱 Description
AreFixedLength(PropertiesConfigurationBuilder, Boolean)

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

AreFixedLength<TProperty>(PropertiesConfigurationBuilder<TProperty>, Boolean)

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

AreFixedLength(PropertiesConfigurationBuilder, Boolean)

來源:
RelationalPropertiesConfigurationBuilderExtensions.cs
來源:
RelationalPropertiesConfigurationBuilderExtensions.cs
來源:
RelationalPropertiesConfigurationBuilderExtensions.cs
來源:
RelationalPropertiesConfigurationBuilderExtensions.cs
來源:
RelationalPropertiesConfigurationBuilderExtensions.cs
來源:
RelationalPropertiesConfigurationBuilderExtensions.cs

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

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

參數

propertyBuilder
PropertiesConfigurationBuilder

正在配置的物業的建商。

fixedLength
Boolean

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

傳回

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

備註

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

適用於

AreFixedLength<TProperty>(PropertiesConfigurationBuilder<TProperty>, Boolean)

來源:
RelationalPropertiesConfigurationBuilderExtensions.cs
來源:
RelationalPropertiesConfigurationBuilderExtensions.cs
來源:
RelationalPropertiesConfigurationBuilderExtensions.cs
來源:
RelationalPropertiesConfigurationBuilderExtensions.cs
來源:
RelationalPropertiesConfigurationBuilderExtensions.cs
來源:
RelationalPropertiesConfigurationBuilderExtensions.cs

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

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

類型參數

TProperty

配置的房產類型。

參數

propertyBuilder
PropertiesConfigurationBuilder<TProperty>

正在配置的物業的建商。

fixedLength
Boolean

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

傳回

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

備註

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

適用於