Free mag vol1 | Page 964

CHAPTER 22  ADO.NET PART II: THE DISCONNECTED LAYER record row to the table in memory, FindByCarID() lets you do a lookup based on the primary key of the table, and RemoveInventoryRow() lets you remove a row from the strongly typed table (see Figure 22-21). Figure 22-21. The strongly typed DataTable is nested in the strongly typed DataSet Examining the Strongly Typed DataRow The strongly typed DataRow class, which is also nested in the strongly typed DataSet, extends the DataRow class and exposes properties that map directly to the schema of the Inventory table. Also, the data designer tool has created a method (IsPetNameNull()) that will perform a check on whether this column has a value (see Figure 22-22). 910