摘要:ProfileCommon是继承自ProfileBase的一个类,可以使用它很方便的访问用户的Profile。
在业务层里用到了ProfileCommon类,大致如下:
ProfileCommon pro=new ProfileCommon();
pro=pro.GetProfile(username);
return pro.PhoneNum;
以前业务层代码都放到app_code下,所以一切正常。但是现在想把业务层放到一个库文件里,问题就出来了,大家知道ProfileCommon类是asp.net自动生成的,根本没法在当前的asp.net website之外使用.....
阅读全文