我正在尝试设计一个自定义配置文件类,除了我的自定义表(都在同一个数据库中)之外,它还允许我访问 aspnet 表。
我一直在关注两个在线示例,这些示例描述了如何连接自定义配置文件类。在这个例子中,我被要求从 ProfileProvider 继承
而且,在这一个中,我被要求从 ProfileBase 继承:
这两个例子有什么区别,哪种方式更好?我应该从 ProfileProvider 还是 ProfileBase 继承?有什么不同?
public class UserProfile : ProfileProvider
public class UserProfile : ProfileBase
谢谢。