70-516 · Question #105
There are Entities-States Class, Cities class. Deleting of state id raises exception. Which of the following?
The correct answer is B. ConstraintException. ConstraintException Represents the exception that is thrown when attempting an action that violates a constraint. System.Exception System.SystemException System.Data.DataException System.Data.ConstraintException EntityException Represents Entity Framework-related errors that…
Question
There are Entities-States Class, Cities class. Deleting of state id raises exception. Which of the following?
Options
- AEntityException
- BConstraintException
- CUpdateException
- DEntityUpdateException
How the community answered
(19 responses)- A5% (1)
- B84% (16)
- C11% (2)
Explanation
ConstraintException Represents the exception that is thrown when attempting an action that violates a constraint. System.Exception System.SystemException System.Data.DataException System.Data.ConstraintException EntityException Represents Entity Framework-related errors that occur in the EntityClient The EntityException is the base class for all Entity Framework exceptions thrown by the 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.ProviderIncompatibleException The exception that is thrown when modifications to object instances cannot be persisted to the System.Exception System.SystemException System.Data.DataException System.Data.UpdateException System.Data.OptimisticConcurrencyException EntityException Class ConstraintException Class UpdateException Class
Topics
Community Discussion
No community discussion yet for this question.