Workshop

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

Quiz

1:How are system-assigned keys supported in ADO.NET?
A1: Automatically generated keys are supported in two primary ways. First, the DataColumn class exposes AutoIncrement, AutoIncrementStep, and AutoIncrementSeed properties that when set enable ADO.NET to generate incremental numeric values in the DataColumn. These values are often used to relate tables through a foreign key constraint or data relation. Second, you can write your own code to assign values to keys as rows are inserted; for example, by using the NewGuid method of the Guid structure.
2:In what ways can expressions be used for a DataColumn?
A2: Expressions, through the Expression property, can ...

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.