SqlServerEntityTypeBuilderExtensions SqlServerEntityTypeBuilderExtensions Class

SQL Server specific extension methods for EntityTypeBuilder.

Syntax

Declaration

public static class SqlServerEntityTypeBuilderExtensionsPublic Module SqlServerEntityTypeBuilderExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • SqlServerEntityTypeBuilderExtensions
    SqlServerEntityTypeBuilderExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

Configures the table that the entity maps to when targeting SQL Server as memory-optimized.

Configures the table that the entity maps to when targeting SQL Server as memory-optimized.

Configures the table that the entity maps to when targeting SQL Server.

Configures the table that the entity maps to when targeting SQL Server.

Configures the table that the entity maps to when targeting SQL Server.

Configures the table that the entity maps to when targeting SQL Server.

Methods

  • ForSqlServerIsMemoryOptimized(EntityTypeBuilder, Boolean)
    ForSqlServerIsMemoryOptimized(EntityTypeBuilder, Boolean)

    Configures the table that the entity maps to when targeting SQL Server as memory-optimized.

    public static EntityTypeBuilder ForSqlServerIsMemoryOptimized(this EntityTypeBuilder entityTypeBuilder, bool memoryOptimized = true)<ExtensionAttribute>
    Public Shared Function ForSqlServerIsMemoryOptimized(entityTypeBuilder As EntityTypeBuilder, memoryOptimized As Boolean = True) As EntityTypeBuilder

    Parameters

    • entityTypeBuilder

      The builder for the entity type being configured.

    • memoryOptimized
      System.Boolean
      System.Boolean

      A value indicating whether the table is memory-optimized.

    Returns

  • ForSqlServerIsMemoryOptimized<TEntity>(EntityTypeBuilder<TEntity>, Boolean)
    ForSqlServerIsMemoryOptimized(Of TEntity)(EntityTypeBuilder(Of TEntity), Boolean)

    Configures the table that the entity maps to when targeting SQL Server as memory-optimized.

    public static EntityTypeBuilder<TEntity> ForSqlServerIsMemoryOptimized<TEntity>(this EntityTypeBuilder<TEntity> entityTypeBuilder, bool memoryOptimized = true)where TEntity : class<ExtensionAttribute>
    Public Shared Function ForSqlServerIsMemoryOptimized(Of TEntity As Class)(entityTypeBuilder As EntityTypeBuilder(Of TEntity), memoryOptimized As Boolean = True) As EntityTypeBuilder(Of TEntity)

    Parameters

    Returns

  • ForSqlServerToTable(EntityTypeBuilder, String)
    ForSqlServerToTable(EntityTypeBuilder, String)

    Configures the table that the entity maps to when targeting SQL Server.

    public static EntityTypeBuilder ForSqlServerToTable(this EntityTypeBuilder entityTypeBuilder, string name)<ExtensionAttribute>
    Public Shared Function ForSqlServerToTable(entityTypeBuilder As EntityTypeBuilder, name As String) As EntityTypeBuilder

    Parameters

    Returns

  • ForSqlServerToTable(EntityTypeBuilder, String, String)
    ForSqlServerToTable(EntityTypeBuilder, String, String)

    Configures the table that the entity maps to when targeting SQL Server.

    public static EntityTypeBuilder ForSqlServerToTable(this EntityTypeBuilder entityTypeBuilder, string name, string schema)<ExtensionAttribute>
    Public Shared Function ForSqlServerToTable(entityTypeBuilder As EntityTypeBuilder, name As String, schema As String) As EntityTypeBuilder

    Parameters

    • entityTypeBuilder

      The builder for the entity type being configured.

    • name
      System.String
      System.String

      The name of the table.

    • schema
      System.String
      System.String

      The schema of the table.

    Returns

  • ForSqlServerToTable<TEntity>(EntityTypeBuilder<TEntity>, String)
    ForSqlServerToTable(Of TEntity)(EntityTypeBuilder(Of TEntity), String)

    Configures the table that the entity maps to when targeting SQL Server.

    public static EntityTypeBuilder<TEntity> ForSqlServerToTable<TEntity>(this EntityTypeBuilder<TEntity> entityTypeBuilder, string name)where TEntity : class<ExtensionAttribute>
    Public Shared Function ForSqlServerToTable(Of TEntity As Class)(entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String) As EntityTypeBuilder(Of TEntity)

    Parameters

    Returns

  • ForSqlServerToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String)
    ForSqlServerToTable(Of TEntity)(EntityTypeBuilder(Of TEntity), String, String)

    Configures the table that the entity maps to when targeting SQL Server.

    public static EntityTypeBuilder<TEntity> ForSqlServerToTable<TEntity>(this EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string schema)where TEntity : class<ExtensionAttribute>
    Public Shared Function ForSqlServerToTable(Of TEntity As Class)(entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, schema As String) As EntityTypeBuilder(Of TEntity)

    Parameters

    • entityTypeBuilder

      The builder for the entity type being configured.

    • name
      System.String
      System.String

      The name of the table.

    • schema
      System.String
      System.String

      The schema of the table.

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.SqlServer.dll