BLL继承工厂

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Factory;
namespace BLL
{
    public class BaseBLL<T>
    {
        public IDAL.idals<T> t;
        public BaseBLL(string typeName)
        {
            t = ChartFactory<IDAL.idals<T>>.CreateFactory(typeName);
        }
    }
}

原文地址:https://www.cnblogs.com/lockzy/p/9520348.html