다음을 통해 공유


CreateTableBuilder<TColumns>.UniqueConstraint 메서드

정의

테이블에서 고유한 제약 조건을 구성합니다.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation> UniqueConstraint (string name, System.Linq.Expressions.Expression<Func<TColumns,object>> columns);
abstract member UniqueConstraint : string * System.Linq.Expressions.Expression<Func<'Columns, obj>> -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation>
override this.UniqueConstraint : string * System.Linq.Expressions.Expression<Func<'Columns, obj>> -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation>
Public Overridable Function UniqueConstraint (name As String, columns As Expression(Of Func(Of TColumns, Object))) As OperationBuilder(Of AddUniqueConstraintOperation)

매개 변수

name
String

제약 조건 이름입니다.

columns
Expression<Func<TColumns,Object>>

제약 조건을 구성하는 열입니다.

반환

여러 호출을 연결할 수 있도록 동일한 작성기입니다.

적용 대상