.NET Framework Class Library EntitySqlException Class Represents errors that occur when parsing Entity SQL command text. This exception is thrown when syntactic or semantic rules are violated.

Inheritance Hierarchy
Namespace:
System.Data
Assembly:
System.Data.Entity (in System.Data.Entity.dll)

Syntax
<SerializableAttribute> _
Public NotInheritable Class EntitySqlException _
Inherits EntityException
[SerializableAttribute]
public sealed class EntitySqlException : EntityException
[SerializableAttribute]
public ref class EntitySqlException sealed : public EntityException
[<Sealed>]
[<SerializableAttribute>]
type EntitySqlException =
class
inherit EntityException
end
The EntitySqlException type exposes the following members.

Constructors

Methods

Events
|
| Name | Description |
|---|
.gif) | SerializeObjectState | Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Inherited from Exception.) | Top

Remarks
For more information about how to handle code exceptions, see Exception.

Version Information
.NET FrameworkSupported in: 4, 3.5 SP1 .NET Framework Client ProfileSupported in: 4

Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also
|
Biblioteca de clases de .NET Framework EntitySqlException (Clase) Representa los errores que se producen al analizar el texto de los comandos de Entity SQL. Esta excepción se inicia cuando se infringen las reglas sintácticas o semánticas.

Jerarquía de herencia
Espacio de nombres:
System.Data
Ensamblado:
System.Data.Entity (en System.Data.Entity.dll)

Sintaxis
<SerializableAttribute> _
Public NotInheritable Class EntitySqlException _
Inherits EntityException
[SerializableAttribute]
public sealed class EntitySqlException : EntityException
[SerializableAttribute]
public ref class EntitySqlException sealed : public EntityException
[<Sealed>]
[<SerializableAttribute>]
type EntitySqlException =
class
inherit EntityException
end
El tipo EntitySqlException expone los siguientes miembros.

Constructores

Métodos

Eventos
|
| Nombre | Descripción |
|---|
.gif) | SerializeObjectState | Se produce cuando se serializa una excepción para crear un objeto de estados de excepción que contiene datos serializados sobre la excepción. (Se hereda de Exception). | Arriba

Comentarios
Para obtener más información sobre cómo controlar las excepciones provocadas por el código, vea Exception.

Información de versión
.NET FrameworkCompatible con: 4, 3.5 SP1 .NET Framework Client ProfileCompatible con: 4

Plataformas
Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

Seguridad para subprocesos
Todos los miembros static ( Shared en Visual Basic) públicos de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancias sean seguros para la ejecución de subprocesos.

Vea también
|