Share via


SqlServerPrimitiveCollectionBuilderExtensions Class

Definition

SQL Server specific extension methods for PrimitiveCollectionBuilder.

[System.Runtime.CompilerServices.Nullable(0)]
public static class SqlServerPrimitiveCollectionBuilderExtensions
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerPrimitiveCollectionBuilderExtensions = class
Public Module SqlServerPrimitiveCollectionBuilderExtensions
Inheritance
SqlServerPrimitiveCollectionBuilderExtensions
Attributes

Remarks

See Modeling entity types and relationships, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.

Methods

Name Description
HasDefaultValue(PrimitiveCollectionBuilder, Object, String)

Configures the default value for the column that the property maps to when targeting a relational database.

HasDefaultValue<TProperty>(PrimitiveCollectionBuilder<TProperty>, Object, String)

Configures the default value for the column that the property maps to when targeting a relational database.

HasDefaultValueSql(PrimitiveCollectionBuilder, String, String)

Configures the default value expression for the column that the property maps to when targeting a relational database.

HasDefaultValueSql<TProperty>(PrimitiveCollectionBuilder<TProperty>, String, String)

Configures the default value expression for the column that the property maps to when targeting a relational database.

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.

Applies to