This documentation is archived and is not being maintained.

DataContext.ExecuteQuery Method

Executes SQL queries directly on the database.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method ExecuteQuery<TResult>(String, Object[]) Executes SQL queries directly on the database and returns objects.
Public method ExecuteQuery(Type, String, Object[]) Executes SQL queries directly on the database.
Top

This method is a pass-through mechanism to provide for scenarios in which the capabilities of LINQ to SQL are insufficient to achieve the results that you want.

Show: