nerdexam
Microsoft

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…

Manipulating and Validating Data

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)
  • A
    5% (1)
  • B
    84% (16)
  • C
    11% (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

#Entity Framework#delete exception#referential integrity#ConstraintException

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice