Workshop

This workshop will help reinforce the concepts covered in today's lesson.

Quiz

1:How does a data adapter know which rows have changes?
A1: A data adapter, or for that matter your code, can inspect the RowState property of the DataRow object to determine the current state of the row. Row states include Added, Deleted, Modified, and Unchanged.
2:How does a DataTable track the old values for a row?
A2: Each row in the DataTable can have up to three different copies or versions (Current, Original, Proposed) associated with it. The HasVersion method of the DataRow class is used to determine whether a particular version exists by accepting a value from the DataRowVersion enumeration. Various versions can be retrieved using the optional second ...

Get Sams Teach Yourself ADO.NET in 21 Days 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.