SqlServerComplexTypePropertyBuilderExtensions.IsSparse 方法

定义

重载

IsSparse(ComplexTypePropertyBuilder, Boolean)

配置在面向SQL Server时是否以稀疏的形式创建属性的列。

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

配置在面向SQL Server时是否以稀疏的形式创建属性的列。

IsSparse(ComplexTypePropertyBuilder, Boolean)

配置在面向SQL Server时是否以稀疏的形式创建属性的列。

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

参数

propertyBuilder
ComplexTypePropertyBuilder

要配置的属性的生成器。

sparse
Boolean

一个值,该值指示是否将属性的列创建为稀疏。

返回

用于进一步配置 属性的生成器。

注解

有关详细信息和示例,请参阅为实体类型和关系建模和使用 EF Core 访问SQL Server和Azure SQL数据库。 另请参阅稀疏列,了解SQL Server稀疏列的一般信息。

适用于

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

配置在面向SQL Server时是否以稀疏的形式创建属性的列。

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

类型参数

TProperty

参数

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

要配置的属性的生成器。

sparse
Boolean

一个值,该值指示是否将属性的列创建为稀疏。

返回

用于进一步配置 属性的生成器。

注解

有关详细信息和示例,请参阅为实体类型和关系建模和使用 EF Core 访问SQL Server和Azure SQL数据库。 另请参阅稀疏列,了解SQL Server稀疏列的一般信息。

适用于