locked
How to execute a command RRS feed

  • Question

  • How to execute a command on Sql server from linq to sql
    Saturday, August 4, 2012 3:34 AM

Answers

  • You can use execute command with System.Data.Linq.DataContext instance by using ExecuteCommand method, documentation has example how to use it. Alternatively you can get the DbCommand instanceby using GetCommand method passing query command should use as parameter and use that command instance to execute query.

    • Proposed as answer by Mike Feng Thursday, August 9, 2012 9:44 AM
    • Marked as answer by Mike Feng Thursday, August 16, 2012 9:28 AM
    Saturday, August 4, 2012 9:11 AM