Share via


SqlServerComplexTypePrimitiveCollectionBuilderExtensions.IsSparse Method

Definition

Overloads

IsSparse(ComplexTypePrimitiveCollectionBuilder, Boolean)

Configures whether the property's column is created as sparse when targeting SQL Server.

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

Configures whether the property's column is created as sparse when targeting SQL Server.

IsSparse(ComplexTypePrimitiveCollectionBuilder, Boolean)

Configures whether the property's column is created as sparse when targeting SQL Server.

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

Parameters

primitiveCollectionBuilder
ComplexTypePrimitiveCollectionBuilder

The builder for the property being configured.

sparse
Boolean

A value indicating whether the property's column is created as sparse.

Returns

A builder to further configure the property.

Remarks

See Modeling entity types and relationships, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples. Also see Sparse columns for general information on SQL Server sparse columns.

Applies to

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

Configures whether the property's column is created as sparse when targeting SQL Server.

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

Type Parameters

TProperty

Parameters

primitiveCollectionBuilder
ComplexTypePrimitiveCollectionBuilder<TProperty>

The builder for the property being configured.

sparse
Boolean

A value indicating whether the property's column is created as sparse.

Returns

A builder to further configure the property.

Remarks

See Modeling entity types and relationships, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples. Also see Sparse columns for general information on SQL Server sparse columns.

Applies to