RelationalIndexExtensions.SetDatabaseName Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
SetDatabaseName(IMutableIndex, String) |
Sets the name of the index in the database. |
SetDatabaseName(IConventionIndex, String, Boolean) |
Sets the name of the index in the database. |
- Source:
- RelationalIndexExtensions.cs
- Source:
- RelationalIndexExtensions.cs
- Source:
- RelationalIndexExtensions.cs
- Source:
- RelationalIndexExtensions.cs
- Source:
- RelationalIndexExtensions.cs
Sets the name of the index in the database.
public static void SetDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string name);
public static void SetDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string? name);
static member SetDatabaseName : Microsoft.EntityFrameworkCore.Metadata.IMutableIndex * string -> unit
<Extension()>
Public Sub SetDatabaseName (index As IMutableIndex, name As String)
Parameters
- index
- IMutableIndex
The index.
- name
- String
The value to set.
Applies to
Entity Framework Core 9.0 ja muud versioonid
Toode | Versioonid |
---|---|
Entity Framework Core | 5.0, 6.0, 7.0, 8.0, 9.0 |
- Source:
- RelationalIndexExtensions.cs
- Source:
- RelationalIndexExtensions.cs
- Source:
- RelationalIndexExtensions.cs
- Source:
- RelationalIndexExtensions.cs
- Source:
- RelationalIndexExtensions.cs
Sets the name of the index in the database.
public static string SetDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string name, bool fromDataAnnotation = false);
public static string? SetDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string? name, bool fromDataAnnotation = false);
static member SetDatabaseName : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex * string * bool -> string
<Extension()>
Public Function SetDatabaseName (index As IConventionIndex, name As String, Optional fromDataAnnotation As Boolean = false) As String
Parameters
- index
- IConventionIndex
The index.
- name
- String
The value to set.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
Entity Framework Core 9.0 ja muud versioonid
Toode | Versioonid |
---|---|
Entity Framework Core | 5.0, 6.0, 7.0, 8.0, 9.0 |
Toote „Entity Framework“ tagasiside
Entity Framework on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: