EntityCommandExecutionException, classe
[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.]
Représente un échec lors de la préparation ou de l'exécution d'un CommandExecution. Cette exception est conçue pour fournir une exception commune que les utilisateurs peuvent intercepter pour gérer les exceptions du fournisseur (SqlException, OracleException) lors de l'utilisation de l'EntityCommand pour exécuter les instructions.
Hiérarchie d'héritage
System.Object
System.Exception
System.SystemException
System.Data.DataException
System.Data.Entity.Core.EntityException
System.Data.Entity.Core.EntityCommandExecutionException
Espace de noms : System.Data.Entity.Core
Assembly : EntityFramework (dans EntityFramework.dll)
Syntaxe
'Déclaration
<SerializableAttribute> _
Public NotInheritable Class EntityCommandExecutionException _
Inherits EntityException
'Utilisation
Dim instance As EntityCommandExecutionException
[SerializableAttribute]
public sealed class EntityCommandExecutionException : EntityException
[SerializableAttribute]
public ref class EntityCommandExecutionException sealed : public EntityException
[<SealedAttribute>]
[<SerializableAttribute>]
type EntityCommandExecutionException =
class
inherit EntityException
end
public final class EntityCommandExecutionException extends EntityException
Le type EntityCommandExecutionException expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
![]() |
EntityCommandExecutionException() | Initialise une nouvelle instance de la classe EntityCommandExecutionException, sans message ni exception interne.N'existe probablement pas, mais convient à FxCop. |
![]() |
EntityCommandExecutionException(String) | Initialise une nouvelle instance de la classe EntityCommandExecutionException, avec message, sans exception interne.N'existe probablement pas, mais convient à FxCop. |
![]() |
EntityCommandExecutionException(String, Exception) | Initialise une nouvelle instance de la classe EntityCommandExecutionException, avec message et instance d'exception interne. |
Top
Propriétés
Nom | Description | |
---|---|---|
![]() |
Data | (Hérité de Exception.) |
![]() |
HelpLink | (Hérité de Exception.) |
![]() |
HResult | (Hérité de Exception.) |
![]() |
InnerException | (Hérité de Exception.) |
![]() |
Message | (Hérité de Exception.) |
![]() |
Source | (Hérité de Exception.) |
![]() |
StackTrace | (Hérité de Exception.) |
![]() |
TargetSite | (Hérité de Exception.) |
Top
Méthodes
Nom | Description | |
---|---|---|
![]() |
Equals | (Hérité de Object.) |
![]() |
GetBaseException | (Hérité de Exception.) |
![]() |
GetHashCode | (Hérité de Object.) |
![]() |
GetObjectData | Essentiel pour la sécurité. (Hérité de Exception.) |
![]() |
GetType | (Hérité de Exception.) |
![]() |
ToString | (Hérité de Exception.) |
Top
Sécurité des threads
Tous les membres static (Shared en Visual Basic) publics de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.