动软代码生成器 生成工厂模式 怎样连接多个数据库

1.webconfig

2.DBUtility.PubConstant

3.DbHelperSQL类中声明一个public static string connectionString

4.在每一个SQLServerDAL中的数据库表类中的构造函数中为connectionString 赋值

原文地址:https://www.cnblogs.com/beyondGodLike/p/1434197.html