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 |