There are Entities – States Class, Cities class. Deleting of state id raises exception. Which of the following?
A.
EntityException
B.
ConstraintException
C.
UpdateException
D.
EntityUpdateException
Explanation:
ConstraintException Represents the exception that is thrown when attempting an action that violates a constraint.
System.Object
System.Exception
System.SystemException
System.Data.DataException
System.Data.ConstraintExceptionEntityException Represents Entity Framework-related errors that occur in the EntityClient namespace.
The EntityException is the base class for all Entity Framework exceptions thrown by the EntityClient.
System.Object
System.Exception
System.SystemException
System.Data.DataException
System.Data.EntityException
System.Data.EntityCommandCompilationException
System.Data.EntityCommandExecutionException
System.Data.EntitySqlException
System.Data.MappingException
System.Data.MetadataException
System.Data.ProviderIncompatibleExceptionUpdateException The exception that is thrown when modifications to object instances cannot be persisted to the data source.
System.Object
System.Exception
System.SystemException
System.Data.DataException
System.Data.UpdateException
System.Data.OptimisticConcurrencyExceptionEntityException Class
(http://msdn.microsoft.com/en-us/library/system.data.entityexception.aspx)ConstraintException Class
(http://msdn.microsoft.com/en-us/library/system.data.constraintexception.aspx)UpdateException Class
(http://msdn.microsoft.com/en-us/library/system.data.updateexception.aspx)