开发者

ASP.NET MVC: Errors when tryig to build a new MembershipProvider

开发者 https://www.devze.com 2023-02-20 02:45 出处:网络
I am trying to follow Steve Sandersons MVC2 book and in Chapter 17 he implements a simple / custom MembershipProvider.

I am trying to follow Steve Sandersons MVC2 book and in Chapter 17 he implements a simple / custom MembershipProvider.

However when I "build" my project I get a HUGE array of "...does not implement inherited abstract member..."

Can anyone tell me how I state I dont want to curr开发者_如何学运维ently implement all of these?

ASP.NET MVC: Errors when tryig to build a new MembershipProvider


You can implement an empty method, or just use the default implementation in base classes.


You need to implement all of the abstract members of the MembershipProvider base class, even if you only need to use a couple of them for your provider. You can put filler code in the bodies of the other methods or you can use this:

throw new NotImplementedException();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号