SqlServerStrings SqlServerStrings Class

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Syntax

Declaration

public static class SqlServerStringsPublic Module SqlServerStrings

Inheritance Hierarchy

  • System.Object
    System.Object
  • SqlServerStrings
    SqlServerStrings

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()

Properties summary

To change the IDENTITY property of a column, the column needs to be dropped and recreated.

To set memory-optimized on a table on or off the table needs to be dropped and recreated.

SQL Server requires the table name to be specified for rename index operations. Specify table name in the call to MigrationBuilder.RenameIndex.

An exception has been raised that is likely due to a transient failure. If you are connecting to a SQL Azure database consider using SqlAzureExecutionStrategy.

Methods summary

Identity value generation cannot be used for the property '{property}' on entity type '{entityType}' because the property type is '{propertyType}'. Identity value generation can only be used with signed integer properties.

SQL Server sequences cannot be used to generate values for the property '{property}' on entity type '{entityType}' because the property type is '{propertyType}'. Sequences can only be used with integer properties.

Data type '{dataType}' is not supported in this form. Either specify the length explicitly in the type name, for example as '{dataType}(16)', or remove the data type and use APIs such as HasMaxLength to allow EF choose the data type.

Properties

  • AlterIdentityColumn
    AlterIdentityColumn

    To change the IDENTITY property of a column, the column needs to be dropped and recreated.

    public static string AlterIdentityColumn { get; }Public Shared ReadOnly Property AlterIdentityColumn As String

    Property Value

    • System.String
      System.String
  • AlterMemoryOptimizedTable
    AlterMemoryOptimizedTable

    To set memory-optimized on a table on or off the table needs to be dropped and recreated.

    public static string AlterMemoryOptimizedTable { get; }Public Shared ReadOnly Property AlterMemoryOptimizedTable As String

    Property Value

    • System.String
      System.String
  • IndexTableRequired
    IndexTableRequired

    SQL Server requires the table name to be specified for rename index operations. Specify table name in the call to MigrationBuilder.RenameIndex.

    public static string IndexTableRequired { get; }Public Shared ReadOnly Property IndexTableRequired As String

    Property Value

    • System.String
      System.String
  • TransientExceptionDetected
    TransientExceptionDetected

    An exception has been raised that is likely due to a transient failure. If you are connecting to a SQL Azure database consider using SqlAzureExecutionStrategy.

    public static string TransientExceptionDetected { get; }Public Shared ReadOnly Property TransientExceptionDetected As String

    Property Value

    • System.String
      System.String

Methods

  • IdentityBadType(Object, Object, Object)
    IdentityBadType(Object, Object, Object)

    Identity value generation cannot be used for the property '{property}' on entity type '{entityType}' because the property type is '{propertyType}'. Identity value generation can only be used with signed integer properties.

    public static string IdentityBadType(object property, object entityType, object propertyType)Public Shared Function IdentityBadType(property As Object, entityType As Object, propertyType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • SequenceBadType(Object, Object, Object)
    SequenceBadType(Object, Object, Object)

    SQL Server sequences cannot be used to generate values for the property '{property}' on entity type '{entityType}' because the property type is '{propertyType}'. Sequences can only be used with integer properties.

    public static string SequenceBadType(object property, object entityType, object propertyType)Public Shared Function SequenceBadType(property As Object, entityType As Object, propertyType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • UnqualifiedDataType(Object)
    UnqualifiedDataType(Object)

    Data type '{dataType}' is not supported in this form. Either specify the length explicitly in the type name, for example as '{dataType}(16)', or remove the data type and use APIs such as HasMaxLength to allow EF choose the data type.

    public static string UnqualifiedDataType(object dataType)Public Shared Function UnqualifiedDataType(dataType As Object) As String

    Parameters

    • dataType
      System.Object
      System.Object

    Returns

    • System.String
      System.String

Details

Assembly

Microsoft.EntityFrameworkCore.SqlServer.dll