Chia sẻ qua


SqlServerComplexTypePropertyBuilderExtensions Class

Definition

SQL Server specific extension methods for ComplexTypePropertyBuilder.

[System.Runtime.CompilerServices.Nullable(0)]
public static class SqlServerComplexTypePropertyBuilderExtensions
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerComplexTypePropertyBuilderExtensions = class
Public Module SqlServerComplexTypePropertyBuilderExtensions
Inheritance
SqlServerComplexTypePropertyBuilderExtensions
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(ComplexTypePropertyBuilder, Object, String)

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

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

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

HasDefaultValueSql(ComplexTypePropertyBuilder, String, String)

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

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

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

IsSparse(ComplexTypePropertyBuilder, Boolean)

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

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

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

UseHiLo(ComplexTypePropertyBuilder, String, String)

Configures the key property to use a sequence-based hi-lo pattern to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

UseHiLo<TProperty>(ComplexTypePropertyBuilder<TProperty>, String, String)

Configures the key property to use a sequence-based hi-lo pattern to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

UseIdentityColumn(ComplexTypePropertyBuilder, Int32, Int32)

Configures the key property to use the SQL Server IDENTITY feature to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

UseIdentityColumn(ComplexTypePropertyBuilder, Int64, Int32)

Configures the key property to use the SQL Server IDENTITY feature to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

UseIdentityColumn<TProperty>(ComplexTypePropertyBuilder<TProperty>, Int32, Int32)

Configures the key property to use the SQL Server IDENTITY feature to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

UseIdentityColumn<TProperty>(ComplexTypePropertyBuilder<TProperty>, Int64, Int32)

Configures the key property to use the SQL Server IDENTITY feature to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

UseSequence(ComplexTypePropertyBuilder, String, String)

Configures the key property to use a sequence-based key value generation pattern to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

UseSequence<TProperty>(ComplexTypePropertyBuilder<TProperty>, String, String)

Configures the key property to use a sequence-based key value generation pattern to generate values for new entities, when targeting SQL Server. This method sets the property to be OnAdd.

Applies to