EntitySqlException Class

 

Represents an eSQL Query compilation exception; The class of exceptional conditions that may cause this exception to be raised are mainly: 1) Syntax Errors: raised during query text parsing and when a given query does not conform to eSQL formal grammar; 2) Semantic Errors: raised when semantic rules of eSQL language are not met such as metadata or schema information not accurate or not present, type validation errors, scoping rule violations, user of undefined variables, etc. For more information, see eSQL Language Spec.

Namespace:   System.Data.Entity.Core
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Exception
    System.SystemException
      System.Data.DataException
        System.Data.Entity.Core.EntityException
          System.Data.Entity.Core.EntitySqlException

[SerializableAttribute]
[SuppressMessageAttribute("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", 
	Justification = "SerializeObjectState used instead")]
public sealed class EntitySqlException : EntityException

NameDescription
System_CAPS_pubmethodEntitySqlException()

Initializes a new instance of EntitySqlException with the generic error message.

System_CAPS_pubmethodEntitySqlException(String)

Initializes a new instance of EntitySqlException with the given message.

System_CAPS_pubmethodEntitySqlException(String, Exception)

Initializes a new instance of EntitySqlException with the given message and innerException instance.

NameDescription
System_CAPS_pubpropertyColumn

Gets the approximate column number where the error occurred.

System_CAPS_pubpropertyData

(Inherited from Exception.)

System_CAPS_pubpropertyErrorContext

Gets the approximate context where the error occurred if available.

System_CAPS_pubpropertyErrorDescription

Gets the error description explaining the reason why the query was not accepted or an empty String.Empty

System_CAPS_pubpropertyHelpLink

(Inherited from Exception.)

System_CAPS_pubpropertyHResult

(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

(Inherited from Exception.)

System_CAPS_pubpropertyLine

Gets the approximate line number where the error occurred

System_CAPS_pubpropertyMessage

(Inherited from Exception.)

System_CAPS_pubpropertySource

(Inherited from Exception.)

System_CAPS_pubpropertyStackTrace

(Inherited from Exception.)

System_CAPS_pubpropertyTargetSite

(Inherited from Exception.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

(Inherited from Exception.)

System_CAPS_pubmethodGetType()

(Inherited from Exception.)

System_CAPS_pubmethodToString()

(Inherited from Exception.)

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