Язык

RelationalPropertyExtensions.SetDefaultConstraintName Метод

Определение

Перегрузки

Имя. Описание
SetDefaultConstraintName(IMutableProperty, String)

Задает имя ограничения по умолчанию.

SetDefaultConstraintName(IConventionProperty, String, Boolean)

Задает имя ограничения по умолчанию.

SetDefaultConstraintName(IMutableProperty, String)

Исходный код:
RelationalPropertyExtensions.cs
Исходный код:
RelationalPropertyExtensions.cs

Задает имя ограничения по умолчанию.

public static void SetDefaultConstraintName(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? defaultConstraintName);
static member SetDefaultConstraintName : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetDefaultConstraintName (property As IMutableProperty, defaultConstraintName As String)

Параметры

property
IMutableProperty

Свойство.

defaultConstraintName
String

Используемое имя.

Применяется к

SetDefaultConstraintName(IConventionProperty, String, Boolean)

Исходный код:
RelationalPropertyExtensions.cs
Исходный код:
RelationalPropertyExtensions.cs

Задает имя ограничения по умолчанию.

public static string? SetDefaultConstraintName(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? defaultConstraintName, bool fromDataAnnotation = false);
static member SetDefaultConstraintName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Function SetDefaultConstraintName (property As IConventionProperty, defaultConstraintName As String, Optional fromDataAnnotation As Boolean = false) As String

Параметры

property
IConventionProperty

Свойство.

defaultConstraintName
String

Используемое имя.

fromDataAnnotation
Boolean

Указывает, была ли указана конфигурация с помощью заметки к данным.

Возвращаемое значение

Применяется к