ExecuteSQL ExecuteSQLTransaction WriteImage 所有这些都被覆盖以支持传入连接字符串 或从配置文件中读取它,以及一个SQL字符串或一个 存储过程的名称加上参数集合。 你还需要你的DAL做什么......?I''m really struggling to come up with *any* possible advantages of anon-static DAL...My DAL has six methods:GetDataSetGetDataReaderGetScalarExecuteSQLExecuteSQLTransactionWriteImageall of which are overridden to support the passing in of a connection stringor reading it from the config file, and either a SQL string or the name of astored procedure plus parameters collection.What else do you need your DAL to do...? 这篇关于静态与非静态DAL类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!