RelationalPropertiesConfigurationBuilderExtensions.AreFixedLength 方法

定义

重载

AreFixedLength(PropertiesConfigurationBuilder, Boolean)

将 属性配置为能够仅存储固定长度的数据,例如字符串。

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

将 属性配置为能够仅存储固定长度的数据,例如字符串。

AreFixedLength(PropertiesConfigurationBuilder, Boolean)

Source:
RelationalPropertiesConfigurationBuilderExtensions.cs
Source:
RelationalPropertiesConfigurationBuilderExtensions.cs
Source:
RelationalPropertiesConfigurationBuilderExtensions.cs
Source:
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)

Source:
RelationalPropertiesConfigurationBuilderExtensions.cs
Source:
RelationalPropertiesConfigurationBuilderExtensions.cs
Source:
RelationalPropertiesConfigurationBuilderExtensions.cs
Source:
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

一个值,该值指示属性是否受固定长度值的约束。

返回

同一个生成器实例,以便可以链接多个配置调用。

注解

有关详细信息和示例,请参阅 为实体类型和关系建模

适用于