three-tier architecture, provider model design pattern and strongly-typed dataset
-
Hi All, I would like to build a three tier application in which the DAL layer is based on the provider model design patter, and the BLL will be coded to an abstarct layer interface. As an example in the DAL I would have IProductsProvider class, IProducts class ICategoriesProvider class, ICategories class the BLL will be coded against the ProductsProvider and ICategoriesProvider. An actual implementation of the IProductsProvider could be SQLProductsProvider or XMLProductsProvider How is it possible to implement a similar pattern with strongly-type datasets? As an example I would like to define a kind of strongly-typed datatable and tableadapters or datasets... IProductsTableAdapter IProductTable ICategoriesTableAdapter ICategoriesTable and code the BLL versus these interfaces, and then have SQLProductsTableAdapter implements IProductsTableAdapter SQLProductsTable implements IProductsTable this is to allow the switch of different providers without having to rewrite the BLL code. Thanks