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);
        }
    }
}

posted @ 2018-08-22 20:58  Luckzy  阅读(151)  评论(0编辑  收藏  举报