RelationalIndexBuilderExtensions.HasName Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
HasName(IndexBuilder, String) |
Kedaluwarsa.
Mengonfigurasi nama indeks dalam database saat menargetkan database relasional. |
HasName(IConventionIndexBuilder, String, Boolean) |
Kedaluwarsa.
Mengonfigurasi nama indeks dalam database saat menargetkan database relasional. |
HasName<TEntity>(IndexBuilder<TEntity>, String) |
Kedaluwarsa.
Mengonfigurasi nama indeks dalam database saat menargetkan database relasional. |
HasName(IndexBuilder, String)
Perhatian
Use HasDatabaseName() instead.
Mengonfigurasi nama indeks dalam database saat menargetkan database relasional.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder HasName (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, string name);
[System.Obsolete("Use HasDatabaseName() instead.")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder HasName (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, string name);
[System.Obsolete("Use HasDatabaseName() instead.")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder HasName (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, string? name);
static member HasName : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
[<System.Obsolete("Use HasDatabaseName() instead.")>]
static member HasName : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
<Extension()>
Public Function HasName (indexBuilder As IndexBuilder, name As String) As IndexBuilder
Parameter
- indexBuilder
- IndexBuilder
Penyusun untuk indeks yang sedang dikonfigurasi.
- name
- String
Nama indeks.
Mengembalikan
Penyusun untuk mengonfigurasi indeks lebih lanjut.
- Atribut
Keterangan
Lihat Indeks untuk informasi dan contoh selengkapnya.
Berlaku untuk
HasName(IConventionIndexBuilder, String, Boolean)
Perhatian
Use HasDatabaseName() instead.
Mengonfigurasi nama indeks dalam database saat menargetkan database relasional.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder HasName (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, string name, bool fromDataAnnotation = false);
[System.Obsolete("Use HasDatabaseName() instead.")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder HasName (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, string name, bool fromDataAnnotation = false);
[System.Obsolete("Use HasDatabaseName() instead.")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder? HasName (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, string? name, bool fromDataAnnotation = false);
static member HasName : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder
[<System.Obsolete("Use HasDatabaseName() instead.")>]
static member HasName : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder
<Extension()>
Public Function HasName (indexBuilder As IConventionIndexBuilder, name As String, Optional fromDataAnnotation As Boolean = false) As IConventionIndexBuilder
Parameter
- indexBuilder
- IConventionIndexBuilder
Penyusun untuk indeks yang sedang dikonfigurasi.
- name
- String
Nama indeks.
- fromDataAnnotation
- Boolean
Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.
Mengembalikan
Instans penyusun yang sama jika konfigurasi diterapkan, null
jika tidak.
- Atribut
Keterangan
Lihat Indeks untuk informasi selengkapnya.
Berlaku untuk
HasName<TEntity>(IndexBuilder<TEntity>, String)
Perhatian
Use HasDatabaseName() instead.
Mengonfigurasi nama indeks dalam database saat menargetkan database relasional.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> HasName<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, string name);
[System.Obsolete("Use HasDatabaseName() instead.")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> HasName<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, string name);
[System.Obsolete("Use HasDatabaseName() instead.")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> HasName<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, string? name);
static member HasName : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity>
[<System.Obsolete("Use HasDatabaseName() instead.")>]
static member HasName : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity>
<Extension()>
Public Function HasName(Of TEntity) (indexBuilder As IndexBuilder(Of TEntity), name As String) As IndexBuilder(Of TEntity)
Jenis parameter
- TEntity
Jenis entitas sedang dikonfigurasi.
Parameter
- indexBuilder
- IndexBuilder<TEntity>
Penyusun untuk indeks yang sedang dikonfigurasi.
- name
- String
Nama indeks.
Mengembalikan
Penyusun untuk mengonfigurasi indeks lebih lanjut.
- Atribut
Keterangan
Lihat Indeks untuk informasi selengkapnya.
Berlaku untuk
Entity Framework