다음을 통해 공유


RelationalForeignKeyExtensions.SetConstraintName 메서드

정의

오버로드

SetConstraintName(IMutableForeignKey, String)

외래 키 제약 조건 이름을 설정합니다.

SetConstraintName(IConventionForeignKey, String, Boolean)

외래 키 제약 조건 이름을 설정합니다.

SetConstraintName(IMutableForeignKey, String)

Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs

외래 키 제약 조건 이름을 설정합니다.

public static void SetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey, string value);
public static void SetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey, string? value);
static member SetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey * string -> unit
<Extension()>
Public Sub SetConstraintName (foreignKey As IMutableForeignKey, value As String)

매개 변수

foreignKey
IMutableForeignKey

외래 키입니다.

value
String

설정할 값입니다.

적용 대상

SetConstraintName(IConventionForeignKey, String, Boolean)

Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs

외래 키 제약 조건 이름을 설정합니다.

public static void SetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey, string value, bool fromDataAnnotation = false);
public static string SetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey, string value, bool fromDataAnnotation = false);
public static string? SetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey, string? value, bool fromDataAnnotation = false);
static member SetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey * string * bool -> unit
static member SetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey * string * bool -> string
<Extension()>
Public Sub SetConstraintName (foreignKey As IConventionForeignKey, value As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetConstraintName (foreignKey As IConventionForeignKey, value As String, Optional fromDataAnnotation As Boolean = false) As String

매개 변수

foreignKey
IConventionForeignKey

외래 키입니다.

value
String

설정할 값입니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

구성된 이름입니다.

적용 대상