Workshop

These quiz questions are designed to test your knowledge of the material covered in this chapter. The answers to the quiz questions can be found in Appendix A, “Answers to Quizzes.”

Quiz

1:What must be maintained when using the pessimistic concurrency approach?
  1. Locks on data resources

  2. Database connections

  3. Events

2:In general, how is optimistic concurrency implemented?
  1. Compare original values to current values in the data source

  2. Identify key changes, then commit updates

  3. Delete old values, then insert new values

3:True or false: Pessimistic concurrency is designed for fast, scalable applications in .NET.
4:What should be used when using the optimistic concurrency approach and XML?
  1. Blocks

  2. Tags

  3. DiffGrams

Exercise

From the optimistic concurrency ...

Get Sams Teach Yourself ADO.NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.