Condividi tramite


SqlServerComplexTypePropertyBuilderExtensions.IsSparse Metodo

Definizione

Overload

IsSparse(ComplexTypePropertyBuilder, Boolean)

Configura se la colonna della proprietà viene creata come sparse durante la destinazione SQL Server.

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

Configura se la colonna della proprietà viene creata come sparse durante la destinazione SQL Server.

IsSparse(ComplexTypePropertyBuilder, Boolean)

Configura se la colonna della proprietà viene creata come sparse durante la destinazione 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

Parametri

propertyBuilder
ComplexTypePropertyBuilder

Generatore per la proprietà configurata.

sparse
Boolean

Valore che indica se la colonna della proprietà viene creata come sparse.

Restituisce

Generatore per configurare ulteriormente la proprietà.

Commenti

Vedere Modellazione di tipi di entità e relazionie accesso a SQL Server e Azure SQL database con EF Core per altre informazioni ed esempi. Vedere anche colonne sparse per informazioni generali sulle colonne SQL Server sparse.

Si applica a

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

Configura se la colonna della proprietà viene creata come sparse durante la destinazione 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)

Parametri di tipo

TProperty

Parametri

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

Generatore per la proprietà configurata.

sparse
Boolean

Valore che indica se la colonna della proprietà viene creata come sparse.

Restituisce

Generatore per configurare ulteriormente la proprietà.

Commenti

Vedere Modellazione di tipi di entità e relazionie accesso a SQL Server e Azure SQL database con EF Core per altre informazioni ed esempi. Vedere anche colonne sparse per informazioni generali sulle colonne SQL Server sparse.

Si applica a