ODataQueryOptions.ApplyTo Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
ApplyTo(IQueryable) |
Applicare la singola query all'oggetto IQueryable specificato nell'ordine corretto. |
ApplyTo(IQueryable, AllowedQueryOptions) |
Applicare la singola query all'oggetto IQueryable specificato nell'ordine corretto. |
ApplyTo(IQueryable, ODataQuerySettings) |
Applicare la singola query all'oggetto IQueryable specificato nell'ordine corretto. |
ApplyTo(Object, ODataQuerySettings) |
Applica la query all'entità specificata usando l'oggetto specificato ODataQuerySettings. |
ApplyTo(IQueryable, ODataQuerySettings, AllowedQueryOptions) |
Applicare la singola query all'oggetto IQueryable specificato nell'ordine corretto. |
ApplyTo(Object, ODataQuerySettings, AllowedQueryOptions) |
Applicare la singola query all'oggetto IQueryable specificato nell'ordine corretto. |
ApplyTo(IQueryable)
Applicare la singola query all'oggetto IQueryable specificato nell'ordine corretto.
public virtual System.Linq.IQueryable ApplyTo (System.Linq.IQueryable query);
abstract member ApplyTo : System.Linq.IQueryable -> System.Linq.IQueryable
override this.ApplyTo : System.Linq.IQueryable -> System.Linq.IQueryable
Public Overridable Function ApplyTo (query As IQueryable) As IQueryable
Parametri
- query
- IQueryable
Oggetto IQueryable originale.
Restituisce
IQueryable Nuovo oggetto dopo l'applicazione della query.
Si applica a
ApplyTo(IQueryable, AllowedQueryOptions)
Applicare la singola query all'oggetto IQueryable specificato nell'ordine corretto.
public virtual System.Linq.IQueryable ApplyTo (System.Linq.IQueryable query, Microsoft.AspNet.OData.Query.AllowedQueryOptions ignoreQueryOptions);
abstract member ApplyTo : System.Linq.IQueryable * Microsoft.AspNet.OData.Query.AllowedQueryOptions -> System.Linq.IQueryable
override this.ApplyTo : System.Linq.IQueryable * Microsoft.AspNet.OData.Query.AllowedQueryOptions -> System.Linq.IQueryable
Public Overridable Function ApplyTo (query As IQueryable, ignoreQueryOptions As AllowedQueryOptions) As IQueryable
Parametri
- query
- IQueryable
Oggetto IQueryable originale.
- ignoreQueryOptions
- AllowedQueryOptions
Parametri di query già applicati nelle query.
Restituisce
IQueryable Nuovo oggetto dopo l'applicazione della query.
Si applica a
ApplyTo(IQueryable, ODataQuerySettings)
Applicare la singola query all'oggetto IQueryable specificato nell'ordine corretto.
public virtual System.Linq.IQueryable ApplyTo (System.Linq.IQueryable query, Microsoft.AspNet.OData.Query.ODataQuerySettings querySettings);
abstract member ApplyTo : System.Linq.IQueryable * Microsoft.AspNet.OData.Query.ODataQuerySettings -> System.Linq.IQueryable
override this.ApplyTo : System.Linq.IQueryable * Microsoft.AspNet.OData.Query.ODataQuerySettings -> System.Linq.IQueryable
Public Overridable Function ApplyTo (query As IQueryable, querySettings As ODataQuerySettings) As IQueryable
Parametri
- query
- IQueryable
Oggetto IQueryable originale.
- querySettings
- ODataQuerySettings
Impostazioni da usare nella composizione della query.
Restituisce
IQueryable Nuovo oggetto dopo l'applicazione della query.
Si applica a
ApplyTo(Object, ODataQuerySettings)
Applica la query all'entità specificata usando l'oggetto specificato ODataQuerySettings.
public virtual object ApplyTo (object entity, Microsoft.AspNet.OData.Query.ODataQuerySettings querySettings);
abstract member ApplyTo : obj * Microsoft.AspNet.OData.Query.ODataQuerySettings -> obj
override this.ApplyTo : obj * Microsoft.AspNet.OData.Query.ODataQuerySettings -> obj
Public Overridable Function ApplyTo (entity As Object, querySettings As ODataQuerySettings) As Object
Parametri
- entity
- Object
Entità originale.
- querySettings
- ODataQuerySettings
Oggetto ODataQuerySettings contenente tutte le impostazioni correlate all'applicazione di query.
Restituisce
La nuova entità dopo l'applicazione della query $select e $expand.
Commenti
Solo le opzioni di query $select e $expand possono essere applicate nelle singole entità. Questo metodo genera un'eccezione se la query contiene tutte le altre opzioni di query.
Si applica a
ApplyTo(IQueryable, ODataQuerySettings, AllowedQueryOptions)
Applicare la singola query all'oggetto IQueryable specificato nell'ordine corretto.
public virtual System.Linq.IQueryable ApplyTo (System.Linq.IQueryable query, Microsoft.AspNet.OData.Query.ODataQuerySettings querySettings, Microsoft.AspNet.OData.Query.AllowedQueryOptions ignoreQueryOptions);
abstract member ApplyTo : System.Linq.IQueryable * Microsoft.AspNet.OData.Query.ODataQuerySettings * Microsoft.AspNet.OData.Query.AllowedQueryOptions -> System.Linq.IQueryable
override this.ApplyTo : System.Linq.IQueryable * Microsoft.AspNet.OData.Query.ODataQuerySettings * Microsoft.AspNet.OData.Query.AllowedQueryOptions -> System.Linq.IQueryable
Public Overridable Function ApplyTo (query As IQueryable, querySettings As ODataQuerySettings, ignoreQueryOptions As AllowedQueryOptions) As IQueryable
Parametri
- query
- IQueryable
Oggetto IQueryable originale.
- querySettings
- ODataQuerySettings
Impostazioni da usare nella composizione della query.
- ignoreQueryOptions
- AllowedQueryOptions
Parametri di query già applicati nelle query.
Restituisce
IQueryable Nuovo oggetto dopo l'applicazione della query.
Si applica a
ApplyTo(Object, ODataQuerySettings, AllowedQueryOptions)
Applicare la singola query all'oggetto IQueryable specificato nell'ordine corretto.
public virtual object ApplyTo (object entity, Microsoft.AspNet.OData.Query.ODataQuerySettings querySettings, Microsoft.AspNet.OData.Query.AllowedQueryOptions ignoreQueryOptions);
abstract member ApplyTo : obj * Microsoft.AspNet.OData.Query.ODataQuerySettings * Microsoft.AspNet.OData.Query.AllowedQueryOptions -> obj
override this.ApplyTo : obj * Microsoft.AspNet.OData.Query.ODataQuerySettings * Microsoft.AspNet.OData.Query.AllowedQueryOptions -> obj
Public Overridable Function ApplyTo (entity As Object, querySettings As ODataQuerySettings, ignoreQueryOptions As AllowedQueryOptions) As Object
Parametri
- entity
- Object
Entità originale.
- querySettings
- ODataQuerySettings
Oggetto ODataQuerySettings contenente tutte le impostazioni correlate all'applicazione di query.
- ignoreQueryOptions
- AllowedQueryOptions
Parametri di query già applicati nelle query.
Restituisce
La nuova entità dopo l'applicazione della query $select e $expand.
Commenti
Solo le opzioni di query $select e $expand possono essere applicate nelle singole entità. Questo metodo genera un'eccezione se la query contiene tutte le altre opzioni di query.