【发布时间】:2011-07-08 15:53:51
【问题描述】:
大家好 在为 Web 应用程序实现数据层 DLL 时,我一直使用这种方法:
1) 将数据集放入 dll 项目中 2) 使用具有如下方法的辅助类:
public shared sub settCnnStr(strconnhere as string)
My.Settings.Item("connectionString") = strconnhere
end sub
3) 当我需要使用 dll 时,我会调用这样的方法(通常是 global.asax):
xxxxxxx.helper.setCnnStr("yyyyyyyyyyyyyy")
这种方法一直对我很有效,但我想知道这种方法是否有严重的缺陷,或者是否有更好的解决方案。
谢谢
皮尔路易吉
【问题讨论】:
标签: asp.net vb.net dll data-access-layer strongly-typed-dataset