CosmosEntityTypeExtensions.SetETagPropertyName 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
SetETagPropertyName(IMutableEntityType, String) |
Establece el nombre de la propiedad que se usa para almacenar la clave ETag. |
SetETagPropertyName(IConventionEntityType, String, Boolean) |
Establece el nombre de la propiedad que se usa para almacenar la ETag. |
SetETagPropertyName(IMutableEntityType, String)
Establece el nombre de la propiedad que se usa para almacenar la clave ETag.
public static void SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
public static void SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? name);
static member SetETagPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetETagPropertyName (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 etag.
- name
- String
Nombre que se establecerá.
Se aplica a
SetETagPropertyName(IConventionEntityType, String, Boolean)
Establece el nombre de la propiedad que se usa para almacenar la ETag.
public static void SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name, bool fromDataAnnotation = false);
public static void SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? name, bool fromDataAnnotation = false);
public static string? SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? name, bool fromDataAnnotation = false);
static member SetETagPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> unit
static member SetETagPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Sub SetETagPropertyName (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetETagPropertyName (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 ETag.
- name
- String
Nombre que se establecerá.
- fromDataAnnotation
- Boolean
Indica si la configuración se especificó mediante una anotación de datos.
Devoluciones
Se aplica a
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de