DbBatch.ExecuteReader(CommandBehavior) Méthode

Définition

Exécute le lot par rapport à sa connexion, en retournant un DbDataReader qui peut être utilisé pour accéder aux résultats.

public System.Data.Common.DbDataReader ExecuteReader (System.Data.CommandBehavior behavior = System.Data.CommandBehavior.Default);
member this.ExecuteReader : System.Data.CommandBehavior -> System.Data.Common.DbDataReader
Public Function ExecuteReader (Optional behavior As CommandBehavior = System.Data.CommandBehavior.Default) As DbDataReader

Paramètres

behavior
CommandBehavior

Une des valeurs d’énumération qui spécifie des options pour l’exécution par lots et la récupération des données.

Retours

Objet DbDataReader.

Remarques

Lorsque le lot retourne plusieurs jeux de résultats à partir de commandes différentes, NextResult() peut être utilisé pour faire passer le lecteur au jeu de résultats suivant.

S’applique à