Workshop

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

Quiz

1:What are the benefits of creating a data factory class?
A1: Using a data factory can have several benefits, including reducing the amount of code you have to write in your data access classes, abstracting the provider used, abstracting database-specific syntax, and caching command objects for reuse.
2:What method can you use to dynamically load assemblies and create objects based on their type information?
A2: In the System.Reflection namespace, the Assembly class exposes shared LoadFrom, Load, and LoadWithPartialName methods to load an assembly into memory, whereas the Activator class exposes a shared CreateInstance method to create instances of a type at ...

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.