Bagikan melalui


DbContext.Query<TQuery> Metode

Definisi

Perhatian

Use Set() for entity types without keys

DbSet<TEntity> Membuat yang dapat digunakan untuk mengkueri TQueryinstans .

public virtual Microsoft.EntityFrameworkCore.DbQuery<TQuery> Query<TQuery> () where TQuery : class;
[System.Obsolete("Use Set() for entity types without keys")]
public virtual Microsoft.EntityFrameworkCore.DbQuery<TQuery> Query<TQuery> () where TQuery : class;
abstract member Query : unit -> Microsoft.EntityFrameworkCore.DbQuery<'Query (requires 'Query : null)> (requires 'Query : null)
override this.Query : unit -> Microsoft.EntityFrameworkCore.DbQuery<'Query (requires 'Query : null)> (requires 'Query : null)
[<System.Obsolete("Use Set() for entity types without keys")>]
abstract member Query : unit -> Microsoft.EntityFrameworkCore.DbQuery<'Query (requires 'Query : null)> (requires 'Query : null)
override this.Query : unit -> Microsoft.EntityFrameworkCore.DbQuery<'Query (requires 'Query : null)> (requires 'Query : null)
Public Overridable Function Query(Of TQuery As Class) () As DbQuery(Of TQuery)

Jenis parameter

TQuery

Jenis kueri tempat DbQuery harus dikembalikan.

Mengembalikan

DbQuery untuk jenis entitas tanpa kunci yang diberikan.

Atribut

Berlaku untuk