How to use this method: "DataContext.ExecuteQuery"?

  • Thread starter Thread starter chyong
  • Start date Start date
C

chyong

Hi,

Can anyone provide me sample of the following method of a DataContext?
"DataContext.ExecuteQuery(elementType As System.Type, query As String,
ParamArray parameters As Object)"?

What kind of data should pass in as the "elementType" parameter? I already
tried it for 2 days, still can't find the correct answer. Please anyone
provide me a sample. Thanks.

Chyong
 
chyong said:
Hi,

Can anyone provide me sample of the following method of a
DataContext? "DataContext.ExecuteQuery(elementType As System.Type,
query As String, ParamArray parameters As Object)"?

What kind of data should pass in as the "elementType" parameter? I
already tried it for 2 days, still can't find the correct answer.
Please anyone provide me a sample. Thanks.


What I do in these cases is press F1 and read the parameter description.
If you don't use a Visual Studio/Basic IDE, the help is also online at
msdn2.microsoft.com

I can't help you with the function itself. In general, you can create a
System.Type object by the GetType keyword, for example.


Armin
 
Back
Top