Partager via


EntityCommand.CommandText, propriété

[Cette page concerne Entity Framework version 6. La dernière version est disponible sous le nom de package 'Entity Framework' NuGet. Pour plus d'informations sur Entity Framework, consultez msdn.com/data/ef.]

Obtient ou définit une instruction Entity SQL qui spécifie une commande ou une procédure stockée à exécuter.

Espace de noms :  System.Data.Entity.Core.EntityClient
Assembly :  EntityFramework (dans EntityFramework.dll)

Syntaxe

'Déclaration
Public Overrides Property CommandText As String 
    Get 
    Set
'Utilisation
Dim instance As EntityCommand 
Dim value As String 

value = instance.CommandText

instance.CommandText = value
public override string CommandText { get; set; }
public:
virtual property String^ CommandText {
    String^ get () override;
    void set (String^ value) override;
}
abstract CommandText : string with get, set 
override CommandText : string with get, set
override function get CommandText () : String 
override function set CommandText (value : String)

Valeur de propriété

Type : System.String
Instruction Entity SQL qui spécifie une commande ou une procédure stockée à exécuter.

Implémentations

IDbCommand.CommandText

Voir aussi

Référence

EntityCommand Classe

Espace de noms System.Data.Entity.Core.EntityClient