Export (0) Print
Expand All

Database.ExecuteSqlCommand Method

Entity Framework 5.0

Executes the given DDL/DML command against the database.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

public int ExecuteSqlCommand(
	string sql,
	params Object[] parameters
)

Parameters

sql
Type: System.String

The command string.

parameters
Type: System.Object[]

The parameters to apply to the command string.

Return Value

Type: System.Int32
The result returned by the database after executing the command.
Show:
© 2014 Microsoft