SqlServerEntityTypeBuilderExtensions Class
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.
SQL Server specific extension methods for EntityTypeBuilder.
public static class SqlServerEntityTypeBuilderExtensions
type SqlServerEntityTypeBuilderExtensions = class
Public Module SqlServerEntityTypeBuilderExtensions
- Inheritance
-
SqlServerEntityTypeBuilderExtensions
Remarks
See Modeling entity types and relationships, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Methods
CanSetHistoryTableName(IConventionEntityTypeBuilder, String, Boolean) |
Returns a value indicating whether the given history table name can be set for the entity. |
CanSetHistoryTableSchema(IConventionEntityTypeBuilder, String, Boolean) |
Returns a value indicating whether the mapped table can have history table schema. |
CanSetIsMemoryOptimized(IConventionEntityTypeBuilder, Nullable<Boolean>, Boolean) |
Returns a value indicating whether the mapped table can be configured as memory-optimized. |
CanSetIsTemporal(IConventionEntityTypeBuilder, Boolean, Boolean) |
Returns a value indicating whether the mapped table can be configured as temporal. |
CanSetPeriodEnd(IConventionEntityTypeBuilder, String, Boolean) |
Returns a value indicating whether the mapped table can have period end property. |
CanSetPeriodStart(IConventionEntityTypeBuilder, String, Boolean) |
Returns a value indicating whether the mapped table can have period start property. |
ForSqlServerHasIndex<TEntity>(EntityTypeBuilder<TEntity>, Expression<Func<TEntity,Object>>) |
Configures an index on the specified properties. If there is an existing index on the given set of properties, then the existing index will be returned for configuration. |
ForSqlServerIsMemoryOptimized(EntityTypeBuilder, Boolean) |
Obsolete.
Configures the table that the entity maps to when targeting SQL Server as memory-optimized. |
ForSqlServerIsMemoryOptimized(IConventionEntityTypeBuilder, Nullable<Boolean>, Boolean) |
Obsolete.
Configures the table that the entity maps to when targeting SQL Server as memory-optimized. |
ForSqlServerIsMemoryOptimized(OwnedNavigationBuilder, Boolean) |
Obsolete.
Configures the table that the entity maps to when targeting SQL Server as memory-optimized. |
ForSqlServerIsMemoryOptimized<TEntity,TRelatedEntity>(OwnedNavigationBuilder<TEntity,TRelatedEntity>, Boolean) |
Obsolete.
Configures the table that the entity maps to when targeting SQL Server as memory-optimized. |
ForSqlServerIsMemoryOptimized<TEntity>(EntityTypeBuilder<TEntity>, Boolean) |
Obsolete.
Configures the table that the entity maps to when targeting SQL Server as memory-optimized. |
ForSqlServerToTable(EntityTypeBuilder, String) |
Configures the table that the entity maps to when targeting SQL Server. |
ForSqlServerToTable(EntityTypeBuilder, String, String) |
Configures the table that the entity maps to when targeting SQL Server. |
ForSqlServerToTable<TEntity>(EntityTypeBuilder<TEntity>, String) |
Configures the table that the entity maps to when targeting SQL Server. |
ForSqlServerToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String) |
Configures the table that the entity maps to when targeting SQL Server. |
HasPeriodEnd(IConventionEntityTypeBuilder, String, Boolean) |
Configures a period end property for the entity mapped to a temporal table. |
HasPeriodStart(IConventionEntityTypeBuilder, String, Boolean) |
Configures a period start property for the entity mapped to a temporal table. |
IsMemoryOptimized(EntityTypeBuilder, Boolean) |
Obsolete.
Configures the table that the entity maps to when targeting SQL Server as memory-optimized. |
IsMemoryOptimized(IConventionEntityTypeBuilder, Nullable<Boolean>, Boolean) |
Configures the table that the entity maps to when targeting SQL Server as memory-optimized. |
IsMemoryOptimized(OwnedNavigationBuilder, Boolean) |
Obsolete.
Configures the table that the entity maps to when targeting SQL Server as memory-optimized. |
IsMemoryOptimized<TEntity,TRelatedEntity>(OwnedNavigationBuilder<TEntity,TRelatedEntity>, Boolean) |
Obsolete.
Configures the table that the entity maps to when targeting SQL Server as memory-optimized. |
IsMemoryOptimized<TEntity>(EntityTypeBuilder<TEntity>, Boolean) |
Obsolete.
Configures the table that the entity maps to when targeting SQL Server as memory-optimized. |
IsTemporal(IConventionEntityTypeBuilder, Boolean, Boolean) |
Configures the table as temporal. |
UseHistoryTableName(IConventionEntityTypeBuilder, String, Boolean) |
Configures a history table name for the entity mapped to a temporal table. |
UseHistoryTableSchema(IConventionEntityTypeBuilder, String, Boolean) |
Configures a history table schema for the entity mapped to a temporal table. |
Applies to
Entity Framework