It's not a factory. hehe. They must use macro to do the "copy" work. But the
code are too dirty
and not resuable.
Look at this:
namespace PetShop.DALFactory {
///
/// Factory implementaion for the Account DAL object
///
public class Account
{
public static PetShop.IDAL.IAccount Create()
{
/// Look up the DAL implementation we should be using
string path =
System.Configuration.ConfigurationSettings.AppSettings["WebDAL"];
string className = path + ".Account";
// Using the evi