4、工厂类

using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace Factory
{
    public class DtatAccess
    {
        public static object CreateDAL(string DALName)
        {
            return Assembly.Load("ServerDAL").CreateInstance("ServerDAL." + DALName);
        }
    }
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
猜你喜欢
  • 2022-02-01
  • 2021-06-13
  • 2022-02-07
  • 2022-01-22
  • 2022-01-04
  • 2021-11-25
  • 2021-08-25
相关资源
相似解决方案