Paul Brown
Paul Brown

Reputation: 5016

ASP.NET MVC: Errors when tryig to build a new 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 currently implement all of these?

enter image description here

Upvotes: 1

Views: 132

Answers (2)

J.W.
J.W.

Reputation: 18181

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

Upvotes: 3

Zann Anderson
Zann Anderson

Reputation: 4897

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();

Upvotes: 3

Related Questions