DataContext.ExecuteMethodCall(Object, MethodInfo, Object[]) Method

Definition

Executes the stored database procedure or scalar function associated with the specified .NET method.

protected internal System.Data.Linq.IExecuteResult ExecuteMethodCall (object instance, System.Reflection.MethodInfo methodInfo, params object[] parameters);

Parameters

instance
Object

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

methodInfo
MethodInfo

Identifies the .NET method that corresponds to a database method.

parameters
Object[]

The array of parameters to be passed to the command.

Returns

The result (the return value and output parameters) of executing the specified method.

Remarks

The ExecuteMethodCall 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