Day 18. Building a Data Factory

for RuBoard

Yesterday, you learned how .NET features such as inheritance can be used to create classes in the data services tier of a multi- tier application. Along the way you saw examples of both the direct and abstracted providers approaches to using .NET Data Providers. The former approach entails declaring provider-specific objects in your methods and coding directly to them, whereas the latter approach allows for the use of a ProviderFactory class that abstracts the creation of provider-specific objects. However, there is also a third approach that you can use, known as the internal data factory. This approach is more complicated and will be the focus of today's lesson.

Specifically, today you'll learn

  • The purpose and benefits of creating a data factory

  • Another technique for abstracting the .NET Data Provider

  • How to abstract statements executed against a data store

  • How to increase performance by using a cache

for RuBoard


Sams Teach Yourself Ado. Net in 21 Days
Sams Teach Yourself ADO.NET in 21 Days
ISBN: 0672323869
EAN: 2147483647
Year: 2002
Pages: 158
Authors: Dan Fox

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net