/// Creates new wrapper instance for SQL Server command using given Stored Procedure name. public DatabaseCommand CreateStoredProcedureCommand(string storedProcedure) { var command = new DatabaseCommand(); command.Initialize(Connection, CommandType.StoredProcedure, storedProcedure); return(command); }
/// Creates new wrapper instance for SQL Server command using given Query Text. public DatabaseCommand CreateCommand(string sql) { var command = new DatabaseCommand(); command.Initialize(Connection, CommandType.Text, sql); return(command); }