Question
You ASP.NET application manages order entry data by using a DataSet object named
TKorderEntry. The TKorderEntry object includes two DataTable objects named orderNames and OrderDetails. A ForeignKeyConstraint object named orderDetailsKey is defined between the two DataTable objects. You attempt to delete a row in orderNames while there are related rows in OrderDetails, and an exception is generated.
What is the most likely cause of the problem?

A. The current value of OrderDetails.KeyDeleteRule is Rule.Cascade.

B. The current value of OrderDetails.KeyDeleteRule is Rule.SetNull.

C. The current value of OrderDetails.KeyDeleteRule is Rule.SetDefault.

D. The current value of OrderDetails.KeyDeleteRule is Rule.None.

Answers

Answer: D


Explanation: The rule enumeration indicates the action that occurs when a ForeignKeyConstraint is enforced. None specifies that no action will occur, but exceptions are generated. This is what has occurred in this scenario.
Reference: .NET Framework Class Library, Rule Enumeration [C#]
Incorrect Answers
A: Cascade specifies that all rows containing that value are also deleted.
B: SetNull specifies that values in all child columns are set to null values.
C: SetDefault specifies that all child columns be set to the default value for the column.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q What is the use of "dynamic" keyword?
  • Q What is dependency? how it is used into ant? what is its use?
  • Q Plants breathe in what and give out what
  • Q How to overcome overflow of data in a report?
  • Q Tell me about a time you got totally fed up on the job. What did you do after that?
  • Q What are the different types of inner classes?
  • Q How many people work in this group (department, office, and/or company)?
  • Q African union is fighting with which terrorist organisation ?
  • Q Why is it not possible to deserialize a json string starting with an array
  • Q The expression of high quality 'blue ribbon' or 'blue ribband' equates to what French term?
  • Q What are the different types of ports in Comptuers?