EfCodeFirstBusinessBase<TEntity,TContext>.ExecuteNonQuery

Allows execution of an arbitrary non query SQL command against the database.

Format can either be named parameters (@pk, @name) with DbParameter objects (CreateParameter) or by using {0},{1} for positional parameters and passing in the actual values.

Uses the Entity Sql Connection

public int ExecuteNonQuery(string sql,
	Object[] parameters)

Parameters

sql
Sql statement as a string

parameters
Named parameter objects referenced with {0}-{n} in the Sql command


See also:

Class EfCodeFirstBusinessBase

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic