CosmosEntityTypeExtensions.SetPartitionKeyPropertyName Метод

Определение

Перегрузки

SetPartitionKeyPropertyName(IMutableEntityType, String)

Задает имя свойства, используемого для хранения ключа секции.

SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)

Задает имя свойства, используемого для хранения ключа секции.

SetPartitionKeyPropertyName(IMutableEntityType, String)

Задает имя свойства, используемого для хранения ключа секции.

public static void SetPartitionKeyPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
public static void SetPartitionKeyPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? name);
static member SetPartitionKeyPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetPartitionKeyPropertyName (entityType As IMutableEntityType, name As String)

Параметры

entityType
IMutableEntityType

Тип сущности для задания имени свойства ключа секции.

name
String

Указываемое имя.

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

SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)

Задает имя свойства, используемого для хранения ключа секции.

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

Параметры

entityType
IConventionEntityType

Тип сущности для задания имени свойства ключа секции.

name
String

Указываемое имя.

fromDataAnnotation
Boolean

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

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

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