SqlServerComplexTypePrimitiveCollectionBuilderExtensions.IsSparse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor