CosmosEntityTypeExtensions.SetPartitionKeyPropertyName Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
SetPartitionKeyPropertyName(IMutableEntityType, String) |
Establece el nombre de la propiedad que se usa para almacenar la clave de clave de partición. |
SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean) |
Establece el nombre de la propiedad que se usa para almacenar la clave de partición. |
SetPartitionKeyPropertyName(IMutableEntityType, String)
Establece el nombre de la propiedad que se usa para almacenar la clave de clave de partición.
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
Tipo de entidad para el que se va a establecer el nombre de la propiedad de clave de partición.
- name
- String
Nombre que se establecerá.
Se aplica a
SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)
Establece el nombre de la propiedad que se usa para almacenar la clave de partición.
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
Tipo de entidad para el que se va a establecer el nombre de la propiedad de clave de partición.
- name
- String
Nombre que se establecerá.
- fromDataAnnotation
- Boolean
Indica si la configuración se especificó mediante una anotación de datos.