Redigera

Dela via


DataContext.CreateMethodCallQuery<TResult> Method

Definition

Executes the table-valued database function associated with the specified .NET method.

protected public:
generic <typename TResult>
 System::Linq::IQueryable<TResult> ^ CreateMethodCallQuery(System::Object ^ instance, System::Reflection::MethodInfo ^ methodInfo, ... cli::array <System::Object ^> ^ parameters);
protected internal System.Linq.IQueryable<TResult> CreateMethodCallQuery<TResult> (object instance, System.Reflection.MethodInfo methodInfo, params object[] parameters);
member this.CreateMethodCallQuery : obj * System.Reflection.MethodInfo * obj[] -> System.Linq.IQueryable<'Result>
Protected Friend Function CreateMethodCallQuery(Of TResult) (instance As Object, methodInfo As MethodInfo, ParamArray parameters As Object()) As IQueryable(Of TResult)

Type Parameters

TResult

The type of the elements in the returned collection.

Parameters

instance
Object

The instance of the method invocation (the current object).

methodInfo
MethodInfo

The MethodInfo that identifies the .NET method that corresponds to a database method.

parameters
Object[]

The array of parameters to be passed to the command.

Returns

IQueryable<TResult>

A collection of resultant values returned by the database query.

Remarks

The CreateMethodCallQuery method is used in automatically generated code and acts as a proxy to database functions.

Applies to