dal层主要是处理数据访问之类的操作,那么如何获取网站运行时根目录的物理路径呢?
//string xmlPath=@""D:\aa\bb\test.xml"
string xmlPath=AppDomain.CurrentDomain.BaseDirectory+"test.xml"
相看AppDomain 类.
dal层主要是处理数据访问之类的操作,那么如何获取网站运行时根目录的物理路径呢?
//string xmlPath=@""D:\aa\bb\test.xml"
string xmlPath=AppDomain.CurrentDomain.BaseDirectory+"test.xml"
相看AppDomain 类.