Langue

SqlBatchCommand Classe

Définition

SqlBatchCommand permet l’exécution de plusieurs commandes SQL dans un SqlBatch.

public ref class SqlBatchCommand
public ref class SqlBatchCommand : System::Data::Common::DbBatchCommand
public class SqlBatchCommand
public class SqlBatchCommand : System.Data.Common.DbBatchCommand
type SqlBatchCommand = class
type SqlBatchCommand = class
    inherit DbBatchCommand
Public Class SqlBatchCommand
Public Class SqlBatchCommand
Inherits DbBatchCommand
Héritage
SqlBatchCommand
Héritage
SqlBatchCommand

Constructeurs

Nom Description
SqlBatchCommand()

Initialise un nouveau SqlBatchCommand.

SqlBatchCommand(String, CommandType, IEnumerable<SqlParameter>, SqlCommandColumnEncryptionSetting)

Initialise un nouveau SqlBatchCommand.

Propriétés

Nom Description
CanCreateParameter

Retourne si la CreateParameter() méthode est implémentée.

ColumnEncryptionSetting

Non implémenté actuellement. Paramètre de chiffrement. Pour plus d'informations, consultez Always Encrypted.

CommandBehavior

Instance de CommandBehavior, spécifiant des options pour l’exécution des instructions et la récupération des données. Seuls SchemaOnly et KeyInfo sont pris en charge au niveau de l’instruction.

CommandText

Obtient ou définit la commande de texte à exécuter sur la source de données.

CommandType

Obtient ou définit la façon dont la CommandText propriété est interprétée.

DbParameterCollection

Obtient la collection d’objets SqlParameter .

Parameters

Obtient le SqlParameterCollection.

RecordsAffected

Obtient le nombre de lignes modifiées, insérées ou supprimées par l’exécution de ce spécifique SqlBatchCommand.

Méthodes

Nom Description
CreateParameter()

Crée une nouvelle instance d’un SqlParameter objet.

S’applique à