언어

ColumnOperation 클래스

정의

MigrationOperation 열에 대한 작업에 대한 A입니다. AddColumnOperation 및 AlterColumnOperation참조하세요.

public class ColumnOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class ColumnOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation, Microsoft.EntityFrameworkCore.Migrations.Operations.ITableMigrationOperation
public abstract class ColumnOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation, Microsoft.EntityFrameworkCore.Migrations.Operations.ITableMigrationOperation
type ColumnOperation = class
    inherit MigrationOperation
[<System.Runtime.CompilerServices.Nullable(0)>]
type ColumnOperation = class
    inherit MigrationOperation
    interface ITableMigrationOperation
type ColumnOperation = class
    inherit MigrationOperation
    interface ITableMigrationOperation
Public Class ColumnOperation
Inherits MigrationOperation
Public MustInherit Class ColumnOperation
Inherits MigrationOperation
Implements ITableMigrationOperation
상속
상속
파생
특성
구현

설명

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

생성자

속성 Description
ColumnOperation()

MigrationOperation 열에 대한 작업에 대한 A입니다. AddColumnOperation 및 AlterColumnOperation참조하세요.

속성

속성 Description
ClrType

열에 매핑된 속성 또는 속성의 CLR Type 입니다.

Collation

이 열의 데이터 정렬이거나 null 명시적으로 구성되지 않은 경우

ColumnType

열의 저장소 형식(예: 'nvarchar(max)')입니다.

Comment

이 열에 대한 주석

ComputedColumnSql

열이 계산되지 않은 경우 열 값을 null 계산하는 데 사용할 SQL 식입니다.

DefaultValue

이 열에 대한 명시적 값 없이 삽입된 행의 기본값이거나 null 기본값이 없는 경우입니다.

DefaultValueSql

열을 만들 때 또는 null 기본 제약 조건이 없는 경우 기본 제약 조건으로 사용할 SQL 식입니다.

IsDestructiveChange

작업으로 인해 데이터베이스의 데이터가 손실될 수 있는지 여부를 나타냅니다.

(다음에서 상속됨 MigrationOperation)
IsFixedLength

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

IsNullable

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

IsReadOnly

현재 개체가 읽기 전용인지 여부를 나타냅니다.

(다음에서 상속됨 AnnotatableBase)
IsRowVersion

이 열이 SQL Server 'rowversion'/'timestamp' 열과 동일한 맥락에서 자동 동시성 토큰 역할을 하는지 여부를 나타냅니다.

IsStored

이 속성이 매핑된 계산 열의 값이 데이터베이스에 저장되는지 아니면 읽을 때 계산되는지 여부입니다.

IsUnicode

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

Item[String]

지정된 이름의 값 주석을 가져오고 null , 없는 경우 반환합니다.

(다음에서 상속됨 Annotatable)
MaxLength

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

Name

열 이름입니다.

Precision

열이 저장할 수 있는 최대 자릿수이거나 null 지정되지 않았거나 이 열 형식에 적용되지 않는 경우입니다.

Scale

열이 저장할 수 있는 최대 소수 자릿수이거나 null 지정되지 않았거나 이 열 형식에 적용되지 않는 경우입니다.

Schema

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

Table

열이 들어 있는 테이블입니다.

메서드

속성 Description
AddAnnotation(String, Annotation)

이 개체에 주석을 추가합니다. 지정된 이름의 주석이 이미 있는 경우 throw합니다.

(다음에서 상속됨 Annotatable)
AddAnnotation(String, Object)

이 개체에 주석을 추가합니다. 지정된 이름의 주석이 이미 있는 경우 throw합니다.

(다음에서 상속됨 Annotatable)
AddAnnotations(IEnumerable<IAnnotation>)

이 개체에 주석을 추가합니다.

(다음에서 상속됨 AnnotatableBase)
AddAnnotations(IReadOnlyDictionary<String,Object>)

이 개체에 주석을 추가합니다.

(다음에서 상속됨 AnnotatableBase)
AddRuntimeAnnotation(String, Annotation)

이 개체에 런타임 주석을 추가합니다. 지정된 이름의 주석이 이미 있는 경우 throw합니다.

(다음에서 상속됨 AnnotatableBase)
AddRuntimeAnnotation(String, Object)

이 개체에 런타임 주석을 추가합니다. 지정된 이름의 주석이 이미 있는 경우 throw합니다.

(다음에서 상속됨 AnnotatableBase)
AddRuntimeAnnotations(IEnumerable<Annotation>)

이 개체에 런타임 주석을 추가합니다.

(다음에서 상속됨 AnnotatableBase)
AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

이 개체에 런타임 주석을 추가합니다.

(다음에서 상속됨 AnnotatableBase)
CreateAnnotation(String, Object)

새 주석을 만듭니다.

(다음에서 상속됨 Annotatable)
CreateRuntimeAnnotation(String, Object)

새 런타임 주석을 만듭니다.

(다음에서 상속됨 AnnotatableBase)
EnsureMutable()

모델이 읽기 전용이면 throw됩니다.

(다음에서 상속됨 Annotatable)
EnsureReadOnly()

모델이 읽기 전용이 아니면 throw합니다.

(다음에서 상속됨 Annotatable)
FindAnnotation(String)

지정된 이름의 주석을 가져오고 null 없는 경우 반환합니다.

(다음에서 상속됨 Annotatable)
FindRuntimeAnnotation(String)

지정된 이름의 런타임 주석을 가져오고 null 존재하지 않는 경우 반환합니다.

(다음에서 상속됨 AnnotatableBase)
GetAnnotation(String)

지정된 이름의 주석을 가져오고 없는 경우 throw합니다.

(다음에서 상속됨 AnnotatableBase)
GetAnnotations()

현재 개체의 모든 주석을 가져옵니다.

(다음에서 상속됨 Annotatable)
GetOrAddAnnotation(String, Object)

지정된 이름의 주석이 이미 있는 경우 이 개체에 주석을 추가하거나 기존 주석을 반환합니다.

(다음에서 상속됨 Annotatable)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

지정된 이름의 런타임 주석 값을 가져오고, 이름이 없으면 추가합니다.

(다음에서 상속됨 AnnotatableBase)
GetRuntimeAnnotations()

현재 개체의 모든 런타임 주석을 가져옵니다.

(다음에서 상속됨 AnnotatableBase)
OnAnnotationSet(String, Annotation, Annotation)

주석을 설정하거나 제거할 때 호출됩니다.

(다음에서 상속됨 Annotatable)
RemoveAnnotation(String)

이 개체에서 지정된 주석을 제거합니다.

(다음에서 상속됨 Annotatable)
RemoveRuntimeAnnotation(String)

이 개체에서 지정된 런타임 주석을 제거합니다.

(다음에서 상속됨 AnnotatableBase)
SetAnnotation(String, Annotation, Annotation)

지정된 키 아래에 저장된 주석을 설정합니다. 지정된 이름의 주석이 이미 있는 경우 기존 주석을 덮어씁니다.

(다음에서 상속됨 Annotatable)
SetAnnotation(String, Annotation)

지정된 키 아래에 저장된 주석을 설정합니다. 지정된 이름의 주석이 이미 있는 경우 기존 주석을 덮어씁니다.

(다음에서 상속됨 Annotatable)
SetAnnotation(String, Object)

지정된 키 아래에 저장된 주석을 설정합니다. 지정된 이름의 주석이 이미 있는 경우 기존 주석을 덮어씁니다.

(다음에서 상속됨 Annotatable)
SetRuntimeAnnotation(String, Annotation, Annotation)

지정된 키 아래에 저장된 런타임 주석을 설정합니다. 지정된 이름의 주석이 이미 있는 경우 기존 주석을 덮어씁니다.

(다음에서 상속됨 AnnotatableBase)
SetRuntimeAnnotation(String, Object)

지정된 키 아래에 저장된 런타임 주석을 설정합니다. 지정된 이름의 주석이 이미 있는 경우 기존 주석을 덮어씁니다.

(다음에서 상속됨 AnnotatableBase)

명시적 인터페이스 구현

속성 Description
IAnnotatable.AddRuntimeAnnotation(String, Object)

이 개체에 런타임 주석을 추가합니다. 지정된 이름의 주석이 이미 있는 경우 throw합니다.

(다음에서 상속됨 AnnotatableBase)
IAnnotatable.FindAnnotation(String)

지정된 이름의 주석을 가져오고 null이 없으면 반환합니다.

(다음에서 상속됨 Annotatable)
IAnnotatable.FindRuntimeAnnotation(String)

지정된 이름의 런타임 주석을 가져오고 null 존재하지 않는 경우 반환합니다.

(다음에서 상속됨 AnnotatableBase)
IAnnotatable.GetAnnotations()

현재 개체의 모든 주석을 가져옵니다.

(다음에서 상속됨 Annotatable)
IAnnotatable.GetRuntimeAnnotations()

현재 개체의 모든 런타임 주석을 가져옵니다.

(다음에서 상속됨 AnnotatableBase)
IAnnotatable.RemoveRuntimeAnnotation(String)

이 개체에서 지정된 런타임 주석을 제거합니다.

(다음에서 상속됨 AnnotatableBase)
IAnnotatable.SetRuntimeAnnotation(String, Object)

지정된 키 아래에 저장된 런타임 주석을 설정합니다. 지정된 이름의 주석이 이미 있는 경우 기존 주석을 덮어씁니다.

(다음에서 상속됨 AnnotatableBase)
IMutableAnnotatable.AddAnnotation(String, Object)

이 개체에 주석을 추가합니다. 지정된 이름의 주석이 이미 있는 경우 throw합니다.

(다음에서 상속됨 Annotatable)
IMutableAnnotatable.RemoveAnnotation(String)

이 개체에서 지정된 주석을 제거합니다.

(다음에서 상속됨 Annotatable)
IMutableAnnotatable.SetOrRemoveAnnotation(String, Object)

지정된 이름 아래에 저장된 주석을 설정합니다. 지정된 이름의 주석이 이미 있는 경우 기존 주석을 덮어씁니다. 제공된 경우 null 기존 주석을 제거합니다.

(다음에서 상속됨 Annotatable)
IReadOnlyAnnotatable.FindAnnotation(String)

지정된 이름의 주석을 가져오고 null 없는 경우 반환합니다.

(다음에서 상속됨 AnnotatableBase)
IReadOnlyAnnotatable.GetAnnotations()

현재 개체의 모든 주석을 가져옵니다.

(다음에서 상속됨 AnnotatableBase)
IReadOnlyAnnotatable.Item[String]

지정된 이름의 주석 값을 가져오고 null 없는 경우 반환합니다.

(다음에서 상속됨 AnnotatableBase)

확장명 메서드

속성 Description
AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>)

개체에 주석을 추가합니다.

AnnotationsToDebugString(IAnnotatable, Int32)

개체에 선언된 모든 주석에 대한 디버그 문자열을 가져옵니다.

GetAnnotation(IAnnotatable, String)

지정된 이름의 주석을 가져오고 없는 경우 throw합니다.

GetAnnotation(IMutableAnnotatable, String)

지정된 이름의 주석을 가져오고 없는 경우 throw합니다.

GetOrAddAnnotation(IMutableAnnotatable, String, String)

지정된 키가 있는 기존 주석을 가져오거나 없는 경우 새 주석을 추가합니다.

SetOrRemoveAnnotation(IMutableAnnotatable, String, Object)

지정된 이름 아래에 저장된 주석을 설정합니다. 지정된 이름의 주석이 이미 있는 경우 기존 주석을 덮어씁니다. 제공된 경우 null 기존 주석을 제거합니다.

적용 대상