SimpleMembership - anyone made it n-tier friendly?

前端 未结 4 969
庸人自扰
庸人自扰 2020-12-24 03:38

\"SimpleMembership\", we\'re told, is the future of asp.net membership / role management. The MVC4 \"Internet Application\" template implements Account management using Simp

4条回答
  •  情话喂你
    2020-12-24 03:55

    Accepted answer is not correct, that is not N-Tier. The membership data access and business logic are occurring in the same layer. Just because code is in a different assembly doesn't mean it isn't in the same layer.

    Without some kind of transport mechanism to the data access layer, this is not N-Tier.

    The solution is to inherit and override the WebMatrix SimpleMembershipProvider class such that its data access calls can be performed on a separate host.

    I recommend using dotPeek to look at SimpleMembershipProvider so you know what to do in your overrides.

提交回复
热议问题