SqlServerModelExtensions Class

Definition

Model extension methods for SQL Server-specific metadata.

public static class SqlServerModelExtensions
type SqlServerModelExtensions = class
Public Module SqlServerModelExtensions
Inheritance
SqlServerModelExtensions

Remarks

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

Fields

DefaultHiLoSequenceName

The default name for the hi-lo sequence.

DefaultSequenceNameSuffix

The default prefix for sequences applied to properties.

Methods

GetDatabaseMaxSize(IModel)

Returns the maximum size of the database.

GetDatabaseMaxSize(IReadOnlyModel)

Returns the maximum size of the database.

GetDatabaseMaxSizeConfigurationSource(IConventionModel)

Returns the ConfigurationSource for the maximum size of the database.

GetHiLoSequenceName(IModel)

Returns the name to use for the default hi-lo sequence.

GetHiLoSequenceName(IReadOnlyModel)

Returns the name to use for the default hi-lo sequence.

GetHiLoSequenceNameConfigurationSource(IConventionModel)

Returns the ConfigurationSource for the default hi-lo sequence name.

GetHiLoSequenceSchema(IModel)

Returns the schema to use for the default hi-lo sequence. UseHiLo(PropertyBuilder, String, String)

GetHiLoSequenceSchema(IReadOnlyModel)

Returns the schema to use for the default hi-lo sequence. UseHiLo(PropertyBuilder, String, String)

GetHiLoSequenceSchemaConfigurationSource(IConventionModel)

Returns the ConfigurationSource for the default hi-lo sequence schema.

GetIdentityIncrement(IModel)

Returns the default identity increment.

GetIdentityIncrement(IReadOnlyModel)

Returns the default identity increment.

GetIdentityIncrementConfigurationSource(IConventionModel)

Returns the ConfigurationSource for the default identity increment.

GetIdentitySeed(IModel)

Returns the default identity seed.

GetIdentitySeed(IReadOnlyModel)

Returns the default identity seed.

GetIdentitySeedConfigurationSource(IConventionModel)

Returns the ConfigurationSource for the default schema.

GetPerformanceLevelSql(IModel)

Returns the performance level of the database.

GetPerformanceLevelSql(IReadOnlyModel)

Returns the performance level of the database.

GetPerformanceLevelSqlConfigurationSource(IConventionModel)

Returns the ConfigurationSource for the performance level of the database.

GetSequenceNameSuffix(IReadOnlyModel)

Returns the suffix to append to the name of automatically created sequences.

GetSequenceNameSuffixConfigurationSource(IConventionModel)

Returns the ConfigurationSource for the default value generation sequence name suffix.

GetSequenceSchema(IReadOnlyModel)

Returns the schema to use for the default value generation sequence. UseSequence(PropertyBuilder, String, String)

GetSequenceSchemaConfigurationSource(IConventionModel)

Returns the ConfigurationSource for the default key value generation sequence schema.

GetServiceTierSql(IModel)

Returns the service tier of the database.

GetServiceTierSql(IReadOnlyModel)

Returns the service tier of the database.

GetServiceTierSqlConfigurationSource(IConventionModel)

Returns the ConfigurationSource for the service tier of the database.

GetValueGenerationStrategy(IModel)

Returns the SqlServerValueGenerationStrategy to use for properties of keys in the model, unless the property has a strategy explicitly set.

GetValueGenerationStrategy(IReadOnlyModel)

Returns the SqlServerValueGenerationStrategy to use for properties of keys in the model, unless the property has a strategy explicitly set.

GetValueGenerationStrategyConfigurationSource(IConventionModel)

Returns the ConfigurationSource for the default SqlServerValueGenerationStrategy.

SetDatabaseMaxSize(IConventionModel, String, Boolean)

Sets the maximum size of the database.

SetDatabaseMaxSize(IMutableModel, String)

Sets the maximum size of the database.

SetHiLoSequenceName(IConventionModel, String, Boolean)

Sets the name to use for the default hi-lo sequence.

SetHiLoSequenceName(IMutableModel, String)

Sets the name to use for the default hi-lo sequence.

SetHiLoSequenceSchema(IConventionModel, String, Boolean)

Sets the schema to use for the default hi-lo sequence.

SetHiLoSequenceSchema(IMutableModel, String)

Sets the schema to use for the default hi-lo sequence.

SetIdentityIncrement(IConventionModel, Nullable<Int32>, Boolean)

Sets the default identity increment.

SetIdentityIncrement(IMutableModel, Nullable<Int32>)

Sets the default identity increment.

SetIdentitySeed(IConventionModel, Nullable<Int32>, Boolean)

Sets the default identity seed.

SetIdentitySeed(IConventionModel, Nullable<Int64>, Boolean)

Sets the default identity seed.

SetIdentitySeed(IMutableModel, Nullable<Int32>)

Sets the default identity seed.

SetIdentitySeed(IMutableModel, Nullable<Int64>)

Sets the default identity seed.

SetPerformanceLevelSql(IConventionModel, String, Boolean)

Sets the performance level of the database.

SetPerformanceLevelSql(IMutableModel, String)

Sets the performance level of the database.

SetSequenceNameSuffix(IConventionModel, String, Boolean)

Sets the suffix to append to the name of automatically created sequences.

SetSequenceNameSuffix(IMutableModel, String)

Sets the suffix to append to the name of automatically created sequences.

SetSequenceSchema(IConventionModel, String, Boolean)

Sets the schema to use for the default key value generation sequence.

SetSequenceSchema(IMutableModel, String)

Sets the schema to use for the default key value generation sequence.

SetServiceTierSql(IConventionModel, String, Boolean)

Sets the service tier of the database.

SetServiceTierSql(IMutableModel, String)

Sets the service tier of the database.

SetValueGenerationStrategy(IConventionModel, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Sets the SqlServerValueGenerationStrategy to use for properties of keys in the model that don't have a strategy explicitly set.

SetValueGenerationStrategy(IMutableModel, Nullable<SqlServerValueGenerationStrategy>)

Sets the SqlServerValueGenerationStrategy to use for properties of keys in the model that don't have a strategy explicitly set.

Applies to