RelationalKeyExtensions.SetName 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
SetName(IMutableKey, String) |
Establece el nombre de la restricción de clave para esta clave. |
SetName(IConventionKey, String, Boolean) |
Establece el nombre de la restricción de clave para esta clave. |
SetName(IMutableKey, String)
- Source:
- RelationalKeyExtensions.cs
- Source:
- RelationalKeyExtensions.cs
- Source:
- RelationalKeyExtensions.cs
- Source:
- RelationalKeyExtensions.cs
- Source:
- RelationalKeyExtensions.cs
- Source:
- RelationalKeyExtensions.cs
- Source:
- RelationalKeyExtensions.cs
Establece el nombre de la restricción de clave para esta clave.
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IMutableKey key, string name);
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IMutableKey key, string? name);
static member SetName : Microsoft.EntityFrameworkCore.Metadata.IMutableKey * string -> unit
<Extension()>
Public Sub SetName (key As IMutableKey, name As String)
Parámetros
- key
- IMutableKey
Clave.
- name
- String
Valor que se va a establecer.
Se aplica a
SetName(IConventionKey, String, Boolean)
- Source:
- RelationalKeyExtensions.cs
- Source:
- RelationalKeyExtensions.cs
- Source:
- RelationalKeyExtensions.cs
- Source:
- RelationalKeyExtensions.cs
- Source:
- RelationalKeyExtensions.cs
- Source:
- RelationalKeyExtensions.cs
- Source:
- RelationalKeyExtensions.cs
Establece el nombre de la restricción de clave para esta clave.
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionKey key, string name, bool fromDataAnnotation = false);
public static string SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionKey key, string name, bool fromDataAnnotation = false);
public static string? SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionKey key, string? name, bool fromDataAnnotation = false);
static member SetName : Microsoft.EntityFrameworkCore.Metadata.IConventionKey * string * bool -> unit
static member SetName : Microsoft.EntityFrameworkCore.Metadata.IConventionKey * string * bool -> string
<Extension()>
Public Sub SetName (key As IConventionKey, name As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetName (key As IConventionKey, name As String, Optional fromDataAnnotation As Boolean = false) As String
Parámetros
- key
- IConventionKey
Clave.
- name
- String
Valor que se va a establecer.
- fromDataAnnotation
- Boolean
Indica si la configuración se especificó mediante una anotación de datos.
Devoluciones
Nombre configurado.