DataContext.CreateMethodCallQuery<TResult> Method

Definition

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

C#
protected internal System.Linq.IQueryable<TResult> CreateMethodCallQuery<TResult> (object instance, System.Reflection.MethodInfo methodInfo, params object[] parameters);

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

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1