Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Assuming a DataContext connection, you can use ExecuteCommand to execute SQL commands that do not return objects.
Example
The following example causes SQL Server to increase UnitPrice by 1.00.
db.ExecuteCommand _
("UPDATE Products SET UnitPrice = UnitPrice + 1.00")
db.ExecuteCommand("UPDATE Products SET UnitPrice = UnitPrice + 1.00");
See Also
Tasks
How to: Directly Execute SQL Queries (LINQ to SQL)