Maybe this is a stupid question, but I dont know how to use Membership in sharp architecture template. I have seen how it is done in asp.net MVC (with AccountController, AccountView, and AccountModel / all of them autogenerated and binded to membeship provider).

I hope that my question is clear..

Thank you in advance.

有帮助吗?

解决方案

You would need to implement your own membership provider and register in web.config, and then then have the required repository injected into your provider, or simply use the service locator to get the IRepository.

Mauricio Scheffer has written a post about injected membership provider using windsor which should help you get started.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top