CosmosEntityTypeExtensions.SetPartitionKeyPropertyName Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
SetPartitionKeyPropertyName(IMutableEntityType, String) |
Define o nome da propriedade usada para armazenar a chave de partição. |
SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean) |
Define o nome da propriedade usada para armazenar a chave de partição. |
SetPartitionKeyPropertyName(IMutableEntityType, String)
Define o nome da propriedade usada para armazenar a chave de partição.
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)
Parâmetros
- entityType
- IMutableEntityType
O tipo de entidade para o qual definir o nome da propriedade da chave de partição.
- name
- String
O nome a ser definido.
Aplica-se a
SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)
Define o nome da propriedade usada para armazenar a chave de partição.
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
Parâmetros
- entityType
- IConventionEntityType
O tipo de entidade para o qual definir o nome da propriedade da chave de partição.
- name
- String
O nome a ser definido.
- fromDataAnnotation
- Boolean
Indica se a configuração foi especificada usando uma anotação de dados.
Retornos
Aplica-se a
Entity Framework