SqlServerIndexBuilderExtensions SqlServerIndexBuilderExtensions Class

SQL Server specific extension methods for IndexBuilder.

Syntax

Declaration

public static class SqlServerIndexBuilderExtensionsPublic Module SqlServerIndexBuilderExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • SqlServerIndexBuilderExtensions
    SqlServerIndexBuilderExtensions

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 name of the index in the database when targeting SQL Server.

Configures whether the index is clustered when targeting SQL Server.

Methods

  • ForSqlServerHasName(IndexBuilder, String)
    ForSqlServerHasName(IndexBuilder, String)

    Configures the name of the index in the database when targeting SQL Server.

    public static IndexBuilder ForSqlServerHasName(this IndexBuilder indexBuilder, string name)<ExtensionAttribute>
    Public Shared Function ForSqlServerHasName(indexBuilder As IndexBuilder, name As String) As IndexBuilder

    Parameters

    • indexBuilder

      The builder for the index being configured.

    • name
      System.String
      System.String

      The name of the index.

    Returns

  • ForSqlServerIsClustered(IndexBuilder, Boolean)
    ForSqlServerIsClustered(IndexBuilder, Boolean)

    Configures whether the index is clustered when targeting SQL Server.

    public static IndexBuilder ForSqlServerIsClustered(this IndexBuilder indexBuilder, bool clustered = true)<ExtensionAttribute>
    Public Shared Function ForSqlServerIsClustered(indexBuilder As IndexBuilder, clustered As Boolean = True) As IndexBuilder

    Parameters

    • indexBuilder

      The builder for the index being configured.

    • clustered
      System.Boolean
      System.Boolean

      A value indicating whether the index is clustered.

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.SqlServer.dll