Share via


DbDataSource.CreateDbCommand(String) Méthode

Définition

Retourne un DbCommand qui est prêt pour l’exécution sur le DbDataSource.

protected virtual System.Data.Common.DbCommand CreateDbCommand (string? commandText = default);
abstract member CreateDbCommand : string -> System.Data.Common.DbCommand
override this.CreateDbCommand : string -> System.Data.Common.DbCommand
Protected Overridable Function CreateDbCommand (Optional commandText As String = Nothing) As DbCommand

Paramètres

commandText
String

Commande de texte avec laquelle initialiser le DbCommand que cette méthode retourne.

Retours

DbCommand prêt à être exécuté sur .DbDataSource

Remarques

Cette méthode est destinée à être remplacée par l’implémentation de fournisseurs ADO.NET et n’est pas une API destinée à l’utilisateur.

S’applique à