Share via


SqlServerPrimitiveCollectionBuilderExtensions.IsSparse Method

Definition

Overloads

IsSparse(PrimitiveCollectionBuilder, Boolean)

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

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

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

IsSparse(PrimitiveCollectionBuilder, Boolean)

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

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

Parameters

primitiveCollectionBuilder
PrimitiveCollectionBuilder

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>(PrimitiveCollectionBuilder<TProperty>, Boolean)

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

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

Type Parameters

TProperty

Parameters

primitiveCollectionBuilder
PrimitiveCollectionBuilder<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