MigrationBuilder.AlterColumn 메서드

정의

오버로드

AlterColumn<T>(String, String, String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String)
AlterColumn<T>(String, String, String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String, Type, String, Nullable<Boolean>, Nullable<Int32>, Boolean, Boolean, Object, String, String)

AlterColumnOperation 를 빌드하여 기존 열을 변경합니다.

AlterColumn<T>(String, String, String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String, Type, String, Nullable<Boolean>, Nullable<Int32>, Boolean, Boolean, Object, String, String, Nullable<Boolean>, Nullable<Boolean>)

AlterColumnOperation 를 빌드하여 기존 열을 변경합니다.

AlterColumn<T>(String, String, String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String, Type, String, Nullable<Boolean>, Nullable<Int32>, Boolean, Boolean, Object, String, String, Nullable<Boolean>, Nullable<Boolean>, String, String)

AlterColumnOperation 를 빌드하여 기존 열을 변경합니다.

AlterColumn<T>(String, String, String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String, Type, String, Nullable<Boolean>, Nullable<Int32>, Boolean, Boolean, Object, String, String, Nullable<Boolean>, Nullable<Boolean>, String, String, String, String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>)

AlterColumnOperation 를 빌드하여 기존 열을 변경합니다.

AlterColumn<T>(String, String, String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String)

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation> AlterColumn<T> (string name, string table, string type = default, bool? unicode = default, int? maxLength = default, bool rowVersion = false, string schema = default, bool nullable = false, object defaultValue = default, string defaultValueSql = default, string computedColumnSql = default);
abstract member AlterColumn : string * string * string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation>
override this.AlterColumn : string * string * string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation>
Public Overridable Function AlterColumn(Of T) (name As String, table As String, Optional type As String = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional maxLength As Nullable(Of Integer) = Nothing, Optional rowVersion As Boolean = false, Optional schema As String = Nothing, Optional nullable As Boolean = false, Optional defaultValue As Object = Nothing, Optional defaultValueSql As String = Nothing, Optional computedColumnSql As String = Nothing) As OperationBuilder(Of AlterColumnOperation)

형식 매개 변수

T

매개 변수

name
String
table
String
type
String
unicode
Nullable<Boolean>
maxLength
Nullable<Int32>
rowVersion
Boolean
schema
String
nullable
Boolean
defaultValue
Object
defaultValueSql
String
computedColumnSql
String

반환

적용 대상

AlterColumn<T>(String, String, String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String, Type, String, Nullable<Boolean>, Nullable<Int32>, Boolean, Boolean, Object, String, String)

AlterColumnOperation 를 빌드하여 기존 열을 변경합니다.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation> AlterColumn<T> (string name, string table, string type = default, bool? unicode = default, int? maxLength = default, bool rowVersion = false, string schema = default, bool nullable = false, object defaultValue = default, string defaultValueSql = default, string computedColumnSql = default, Type oldClrType = default, string oldType = default, bool? oldUnicode = default, int? oldMaxLength = default, bool oldRowVersion = false, bool oldNullable = false, object oldDefaultValue = default, string oldDefaultValueSql = default, string oldComputedColumnSql = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation> AlterColumn<T> (string name, string table, string type, bool? unicode, int? maxLength, bool rowVersion, string schema, bool nullable, object defaultValue, string defaultValueSql, string computedColumnSql, Type oldClrType, string oldType, bool? oldUnicode, int? oldMaxLength, bool oldRowVersion, bool oldNullable, object oldDefaultValue, string oldDefaultValueSql, string oldComputedColumnSql);
abstract member AlterColumn : string * string * string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Type * string * Nullable<bool> * Nullable<int> * bool * bool * obj * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation>
override this.AlterColumn : string * string * string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Type * string * Nullable<bool> * Nullable<int> * bool * bool * obj * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation>
Public Overridable Function AlterColumn(Of T) (name As String, table As String, Optional type As String = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional maxLength As Nullable(Of Integer) = Nothing, Optional rowVersion As Boolean = false, Optional schema As String = Nothing, Optional nullable As Boolean = false, Optional defaultValue As Object = Nothing, Optional defaultValueSql As String = Nothing, Optional computedColumnSql As String = Nothing, Optional oldClrType As Type = Nothing, Optional oldType As String = Nothing, Optional oldUnicode As Nullable(Of Boolean) = Nothing, Optional oldMaxLength As Nullable(Of Integer) = Nothing, Optional oldRowVersion As Boolean = false, Optional oldNullable As Boolean = false, Optional oldDefaultValue As Object = Nothing, Optional oldDefaultValueSql As String = Nothing, Optional oldComputedColumnSql As String = Nothing) As AlterOperationBuilder(Of AlterColumnOperation)
Public Overridable Function AlterColumn(Of T) (name As String, table As String, type As String, unicode As Nullable(Of Boolean), maxLength As Nullable(Of Integer), rowVersion As Boolean, schema As String, nullable As Boolean, defaultValue As Object, defaultValueSql As String, computedColumnSql As String, oldClrType As Type, oldType As String, oldUnicode As Nullable(Of Boolean), oldMaxLength As Nullable(Of Integer), oldRowVersion As Boolean, oldNullable As Boolean, oldDefaultValue As Object, oldDefaultValueSql As String, oldComputedColumnSql As String) As AlterOperationBuilder(Of AlterColumnOperation)

형식 매개 변수

T

열이 매핑되는 CLR 형식입니다.

매개 변수

name
String

열 이름입니다.

table
String

열을 포함하는 테이블의 이름입니다.

type
String

열의 저장소/데이터베이스 형식입니다.

unicode
Nullable<Boolean>

열에 유니코드 데이터를 포함할 수 있는지 여부 또는 null 지정되지 않은 경우 적용할 수 있는지 여부를 나타냅니다.

maxLength
Nullable<Int32>

열에 저장할 수 있는 최대 데이터 길이이거나, 지정하지 않았거나 null 적용되지 않는 경우 입니다.

rowVersion
Boolean

열이 SQL Server rowversion/timestamp 열과 같은 자동 동시성 토큰 역할을 하는지 여부를 나타냅니다.

schema
String

테이블이 포함된 스키마이거나 null 기본 스키마를 사용해야 하는 경우 입니다.

nullable
Boolean

열이 값을 저장할 NULL 수 있는지 여부를 나타냅니다.

defaultValue
Object

열의 기본값입니다.

defaultValueSql
String

열의 기본 제약 조건에 사용할 SQL 식입니다.

computedColumnSql
String

열 값을 계산하는 데 사용할 SQL 식입니다.

oldClrType
Type

열이 이전에 매핑된 CLR 형식입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldType
String

열의 이전 저장소/데이터베이스 유형입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldUnicode
Nullable<Boolean>

열에 이전에 유니코드 데이터를 포함할 수 있는지 여부 또는 null 지정되지 않은 경우 적용할 수 있는지 여부를 나타냅니다.

oldMaxLength
Nullable<Int32>

열에 저장할 수 있는 이전 최대 데이터 길이이거나, 지정하지 않았거나 null 적용되지 않는 경우 입니다.

oldRowVersion
Boolean

열이 이전에 자동 동시성 토큰(예: SQL Server rowversion/timestamp 열)으로 작동했는지 여부를 나타냅니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldNullable
Boolean

열이 이전에 값을 저장할 NULL 수 있는지 여부를 나타냅니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldDefaultValue
Object

열의 이전 기본값입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldDefaultValueSql
String

열의 기본 제약 조건에 사용된 이전 SQL 식입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldComputedColumnSql
String

열 값을 계산하는 데 사용된 이전 SQL 식입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

반환

주석을 작업에 추가할 수 있도록 하는 작성기입니다.

적용 대상

AlterColumn<T>(String, String, String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String, Type, String, Nullable<Boolean>, Nullable<Int32>, Boolean, Boolean, Object, String, String, Nullable<Boolean>, Nullable<Boolean>)

AlterColumnOperation 를 빌드하여 기존 열을 변경합니다.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation> AlterColumn<T> (string name, string table, string type = default, bool? unicode = default, int? maxLength = default, bool rowVersion = false, string schema = default, bool nullable = false, object defaultValue = default, string defaultValueSql = default, string computedColumnSql = default, Type oldClrType = default, string oldType = default, bool? oldUnicode = default, int? oldMaxLength = default, bool oldRowVersion = false, bool oldNullable = false, object oldDefaultValue = default, string oldDefaultValueSql = default, string oldComputedColumnSql = default, bool? fixedLength = default, bool? oldFixedLength = default);
abstract member AlterColumn : string * string * string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Type * string * Nullable<bool> * Nullable<int> * bool * bool * obj * string * string * Nullable<bool> * Nullable<bool> -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation>
override this.AlterColumn : string * string * string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Type * string * Nullable<bool> * Nullable<int> * bool * bool * obj * string * string * Nullable<bool> * Nullable<bool> -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation>
Public Overridable Function AlterColumn(Of T) (name As String, table As String, Optional type As String = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional maxLength As Nullable(Of Integer) = Nothing, Optional rowVersion As Boolean = false, Optional schema As String = Nothing, Optional nullable As Boolean = false, Optional defaultValue As Object = Nothing, Optional defaultValueSql As String = Nothing, Optional computedColumnSql As String = Nothing, Optional oldClrType As Type = Nothing, Optional oldType As String = Nothing, Optional oldUnicode As Nullable(Of Boolean) = Nothing, Optional oldMaxLength As Nullable(Of Integer) = Nothing, Optional oldRowVersion As Boolean = false, Optional oldNullable As Boolean = false, Optional oldDefaultValue As Object = Nothing, Optional oldDefaultValueSql As String = Nothing, Optional oldComputedColumnSql As String = Nothing, Optional fixedLength As Nullable(Of Boolean) = Nothing, Optional oldFixedLength As Nullable(Of Boolean) = Nothing) As AlterOperationBuilder(Of AlterColumnOperation)

형식 매개 변수

T

열이 매핑되는 CLR 형식입니다.

매개 변수

name
String

열 이름입니다.

table
String

열을 포함하는 테이블의 이름입니다.

type
String

열의 저장소/데이터베이스 형식입니다.

unicode
Nullable<Boolean>

열에 유니코드 데이터를 포함할 수 있는지 여부 또는 null 지정되지 않은 경우 적용할 수 있는지 여부를 나타냅니다.

maxLength
Nullable<Int32>

열에 저장할 수 있는 최대 데이터 길이이거나, 지정하지 않았거나 null 적용되지 않는 경우 입니다.

rowVersion
Boolean

열이 SQL Server rowversion/timestamp 열과 같은 자동 동시성 토큰 역할을 하는지 여부를 나타냅니다.

schema
String

테이블이 포함된 스키마이거나 null 기본 스키마를 사용해야 하는 경우 입니다.

nullable
Boolean

열이 값을 저장할 NULL 수 있는지 여부를 나타냅니다.

defaultValue
Object

열의 기본값입니다.

defaultValueSql
String

열의 기본 제약 조건에 사용할 SQL 식입니다.

computedColumnSql
String

열 값을 계산하는 데 사용할 SQL 식입니다.

oldClrType
Type

열이 이전에 매핑된 CLR 형식입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldType
String

열의 이전 저장소/데이터베이스 유형입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldUnicode
Nullable<Boolean>

열에 이전에 유니코드 데이터를 포함할 수 있는지 여부 또는 null 지정되지 않은 경우 적용할 수 있는지 여부를 나타냅니다.

oldMaxLength
Nullable<Int32>

열에 저장할 수 있는 이전 최대 데이터 길이이거나, 지정하지 않았거나 null 적용되지 않는 경우 입니다.

oldRowVersion
Boolean

열이 이전에 자동 동시성 토큰(예: SQL Server rowversion/timestamp 열)으로 작동했는지 여부를 나타냅니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldNullable
Boolean

열이 이전에 값을 저장할 NULL 수 있는지 여부를 나타냅니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldDefaultValue
Object

열의 이전 기본값입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldDefaultValueSql
String

열의 기본 제약 조건에 사용된 이전 SQL 식입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldComputedColumnSql
String

열 값을 계산하는 데 사용된 이전 SQL 식입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

fixedLength
Nullable<Boolean>

열이 고정 길이 데이터로 제한되는지 여부를 나타냅니다.

oldFixedLength
Nullable<Boolean>

열이 이전에 고정 길이 데이터로 제한되었는지 여부를 나타냅니다.

반환

주석을 작업에 추가할 수 있도록 하는 작성기입니다.

적용 대상

AlterColumn<T>(String, String, String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String, Type, String, Nullable<Boolean>, Nullable<Int32>, Boolean, Boolean, Object, String, String, Nullable<Boolean>, Nullable<Boolean>, String, String)

AlterColumnOperation 를 빌드하여 기존 열을 변경합니다.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation> AlterColumn<T> (string name, string table, string type = default, bool? unicode = default, int? maxLength = default, bool rowVersion = false, string schema = default, bool nullable = false, object defaultValue = default, string defaultValueSql = default, string computedColumnSql = default, Type oldClrType = default, string oldType = default, bool? oldUnicode = default, int? oldMaxLength = default, bool oldRowVersion = false, bool oldNullable = false, object oldDefaultValue = default, string oldDefaultValueSql = default, string oldComputedColumnSql = default, bool? fixedLength = default, bool? oldFixedLength = default, string comment = default, string oldComment = default);
abstract member AlterColumn : string * string * string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Type * string * Nullable<bool> * Nullable<int> * bool * bool * obj * string * string * Nullable<bool> * Nullable<bool> * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation>
override this.AlterColumn : string * string * string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Type * string * Nullable<bool> * Nullable<int> * bool * bool * obj * string * string * Nullable<bool> * Nullable<bool> * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation>
Public Overridable Function AlterColumn(Of T) (name As String, table As String, Optional type As String = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional maxLength As Nullable(Of Integer) = Nothing, Optional rowVersion As Boolean = false, Optional schema As String = Nothing, Optional nullable As Boolean = false, Optional defaultValue As Object = Nothing, Optional defaultValueSql As String = Nothing, Optional computedColumnSql As String = Nothing, Optional oldClrType As Type = Nothing, Optional oldType As String = Nothing, Optional oldUnicode As Nullable(Of Boolean) = Nothing, Optional oldMaxLength As Nullable(Of Integer) = Nothing, Optional oldRowVersion As Boolean = false, Optional oldNullable As Boolean = false, Optional oldDefaultValue As Object = Nothing, Optional oldDefaultValueSql As String = Nothing, Optional oldComputedColumnSql As String = Nothing, Optional fixedLength As Nullable(Of Boolean) = Nothing, Optional oldFixedLength As Nullable(Of Boolean) = Nothing, Optional comment As String = Nothing, Optional oldComment As String = Nothing) As AlterOperationBuilder(Of AlterColumnOperation)

형식 매개 변수

T

열이 매핑되는 CLR 형식입니다.

매개 변수

name
String

열 이름입니다.

table
String

열을 포함하는 테이블의 이름입니다.

type
String

열의 저장소/데이터베이스 형식입니다.

unicode
Nullable<Boolean>

열에 유니코드 데이터를 포함할 수 있는지 여부 또는 null 지정되지 않은 경우 적용할 수 있는지 여부를 나타냅니다.

maxLength
Nullable<Int32>

열에 저장할 수 있는 최대 데이터 길이이거나, 지정하지 않았거나 null 적용되지 않는 경우 입니다.

rowVersion
Boolean

열이 SQL Server rowversion/timestamp 열과 같은 자동 동시성 토큰 역할을 하는지 여부를 나타냅니다.

schema
String

테이블이 포함된 스키마이거나 null 기본 스키마를 사용해야 하는 경우 입니다.

nullable
Boolean

열이 값을 저장할 NULL 수 있는지 여부를 나타냅니다.

defaultValue
Object

열의 기본값입니다.

defaultValueSql
String

열의 기본 제약 조건에 사용할 SQL 식입니다.

computedColumnSql
String

열 값을 계산하는 데 사용할 SQL 식입니다.

oldClrType
Type

열이 이전에 매핑된 CLR 형식입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldType
String

열의 이전 저장소/데이터베이스 유형입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldUnicode
Nullable<Boolean>

열에 이전에 유니코드 데이터를 포함할 수 있는지 여부 또는 null 지정되지 않은 경우 적용할 수 있는지 여부를 나타냅니다.

oldMaxLength
Nullable<Int32>

열에 저장할 수 있는 이전 최대 데이터 길이이거나, 지정하지 않았거나 null 적용되지 않는 경우 입니다.

oldRowVersion
Boolean

열이 이전에 자동 동시성 토큰(예: SQL Server rowversion/timestamp 열)으로 작동했는지 여부를 나타냅니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldNullable
Boolean

열이 이전에 값을 저장할 NULL 수 있는지 여부를 나타냅니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldDefaultValue
Object

열의 이전 기본값입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldDefaultValueSql
String

열의 기본 제약 조건에 사용된 이전 SQL 식입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldComputedColumnSql
String

열 값을 계산하는 데 사용된 이전 SQL 식입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

fixedLength
Nullable<Boolean>

열이 고정 길이 데이터로 제한되는지 여부를 나타냅니다.

oldFixedLength
Nullable<Boolean>

열이 이전에 고정 길이 데이터로 제한되었는지 여부를 나타냅니다.

comment
String

열과 연결할 주석입니다.

oldComment
String

열과 연결할 이전 주석입니다.

반환

주석을 작업에 추가할 수 있도록 하는 작성기입니다.

적용 대상

AlterColumn<T>(String, String, String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String, Type, String, Nullable<Boolean>, Nullable<Int32>, Boolean, Boolean, Object, String, String, Nullable<Boolean>, Nullable<Boolean>, String, String, String, String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>)

AlterColumnOperation 를 빌드하여 기존 열을 변경합니다.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation> AlterColumn<T> (string name, string table, string type = default, bool? unicode = default, int? maxLength = default, bool rowVersion = false, string schema = default, bool nullable = false, object defaultValue = default, string defaultValueSql = default, string computedColumnSql = default, Type oldClrType = default, string oldType = default, bool? oldUnicode = default, int? oldMaxLength = default, bool oldRowVersion = false, bool oldNullable = false, object oldDefaultValue = default, string oldDefaultValueSql = default, string oldComputedColumnSql = default, bool? fixedLength = default, bool? oldFixedLength = default, string comment = default, string oldComment = default, string collation = default, string oldCollation = default, int? precision = default, int? oldPrecision = default, int? scale = default, int? oldScale = default, bool? stored = default, bool? oldStored = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation> AlterColumn<T> (string name, string table, string? type = default, bool? unicode = default, int? maxLength = default, bool rowVersion = false, string? schema = default, bool nullable = false, object? defaultValue = default, string? defaultValueSql = default, string? computedColumnSql = default, Type? oldClrType = default, string? oldType = default, bool? oldUnicode = default, int? oldMaxLength = default, bool oldRowVersion = false, bool oldNullable = false, object? oldDefaultValue = default, string? oldDefaultValueSql = default, string? oldComputedColumnSql = default, bool? fixedLength = default, bool? oldFixedLength = default, string? comment = default, string? oldComment = default, string? collation = default, string? oldCollation = default, int? precision = default, int? oldPrecision = default, int? scale = default, int? oldScale = default, bool? stored = default, bool? oldStored = default);
abstract member AlterColumn : string * string * string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Type * string * Nullable<bool> * Nullable<int> * bool * bool * obj * string * string * Nullable<bool> * Nullable<bool> * string * string * string * string * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation>
override this.AlterColumn : string * string * string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Type * string * Nullable<bool> * Nullable<int> * bool * bool * obj * string * string * Nullable<bool> * Nullable<bool> * string * string * string * string * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation>
Public Overridable Function AlterColumn(Of T) (name As String, table As String, Optional type As String = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional maxLength As Nullable(Of Integer) = Nothing, Optional rowVersion As Boolean = false, Optional schema As String = Nothing, Optional nullable As Boolean = false, Optional defaultValue As Object = Nothing, Optional defaultValueSql As String = Nothing, Optional computedColumnSql As String = Nothing, Optional oldClrType As Type = Nothing, Optional oldType As String = Nothing, Optional oldUnicode As Nullable(Of Boolean) = Nothing, Optional oldMaxLength As Nullable(Of Integer) = Nothing, Optional oldRowVersion As Boolean = false, Optional oldNullable As Boolean = false, Optional oldDefaultValue As Object = Nothing, Optional oldDefaultValueSql As String = Nothing, Optional oldComputedColumnSql As String = Nothing, Optional fixedLength As Nullable(Of Boolean) = Nothing, Optional oldFixedLength As Nullable(Of Boolean) = Nothing, Optional comment As String = Nothing, Optional oldComment As String = Nothing, Optional collation As String = Nothing, Optional oldCollation As String = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional oldPrecision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing, Optional oldScale As Nullable(Of Integer) = Nothing, Optional stored As Nullable(Of Boolean) = Nothing, Optional oldStored As Nullable(Of Boolean) = Nothing) As AlterOperationBuilder(Of AlterColumnOperation)

형식 매개 변수

T

열이 매핑되는 CLR 형식입니다.

매개 변수

name
String

열 이름입니다.

table
String

열을 포함하는 테이블의 이름입니다.

type
String

열의 저장소/데이터베이스 형식입니다.

unicode
Nullable<Boolean>

열에 유니코드 데이터를 포함할 수 있는지 여부 또는 null 지정되지 않은 경우 적용할 수 있는지 여부를 나타냅니다.

maxLength
Nullable<Int32>

열에 저장할 수 있는 최대 데이터 길이이거나, 지정하지 않았거나 null 적용되지 않는 경우 입니다.

rowVersion
Boolean

열이 SQL Server rowversion/timestamp 열과 같은 자동 동시성 토큰 역할을 하는지 여부를 나타냅니다.

schema
String

테이블이 포함된 스키마이거나 null 기본 스키마를 사용해야 하는 경우 입니다.

nullable
Boolean

열이 값을 저장할 null 수 있는지 여부를 나타냅니다.

defaultValue
Object

열의 기본값입니다.

defaultValueSql
String

열의 기본 제약 조건에 사용할 SQL 식입니다.

computedColumnSql
String

열 값을 계산하는 데 사용할 SQL 식입니다.

oldClrType
Type

열이 이전에 매핑된 CLR 형식입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldType
String

열의 이전 저장소/데이터베이스 유형입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldUnicode
Nullable<Boolean>

열에 이전에 유니코드 데이터를 포함할 수 있는지 여부 또는 null 지정되지 않은 경우 적용할 수 있는지 여부를 나타냅니다.

oldMaxLength
Nullable<Int32>

열에 저장할 수 있는 이전 최대 데이터 길이이거나, 지정하지 않았거나 null 적용되지 않는 경우 입니다.

oldRowVersion
Boolean

열이 이전에 자동 동시성 토큰(예: SQL Server rowversion/timestamp 열)으로 작동했는지 여부를 나타냅니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldNullable
Boolean

열이 이전에 값을 저장할 null 수 있는지 여부를 나타냅니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldDefaultValue
Object

열의 이전 기본값입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldDefaultValueSql
String

열의 기본 제약 조건에 사용된 이전 SQL 식입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

oldComputedColumnSql
String

열 값을 계산하는 데 사용된 이전 SQL 식입니다. 일 수 null있습니다. 이 경우 이전 값은 알 수 없는 것으로 간주됩니다.

fixedLength
Nullable<Boolean>

열이 고정 길이 데이터로 제한되는지 여부를 나타냅니다.

oldFixedLength
Nullable<Boolean>

열이 이전에 고정 길이 데이터로 제한되었는지 여부를 나타냅니다.

comment
String

열과 연결할 주석입니다.

oldComment
String

열과 연결할 이전 주석입니다.

collation
String

열에 적용할 데이터 정렬입니다.

oldCollation
String

열에 적용할 이전 데이터 정렬입니다.

precision
Nullable<Int32>

이 열에 허용되는 최대 자릿수이거나 지정되지 않았거나 null 적용되지 않는 경우 입니다.

oldPrecision
Nullable<Int32>

이 열에서 허용되는 이전 최대 자릿수이거나 지정되지 않았거나 null 적용되지 않는 경우 입니다.

scale
Nullable<Int32>

이 열에서 허용되는 최대 소수 자릿수이거나, 지정하지 않았거나 null 적용되지 않는 경우 입니다.

oldScale
Nullable<Int32>

이 열에서 허용되는 이전의 최대 소수 자릿수이거나, 지정하지 않았거나 null 적용되지 않는 경우 입니다.

stored
Nullable<Boolean>

계산 열의 값이 데이터베이스에 저장되는지 여부입니다.

oldStored
Nullable<Boolean>

이전 계산 열의 값이 데이터베이스에 저장되었는지 여부입니다.

반환

주석을 작업에 추가할 수 있도록 하는 작성기입니다.

설명

자세한 내용 및 예제는 데이터베이스 마이그레이션 을 참조하세요.

적용 대상