要使用[Authorize]
, [Authorize(Roles="")]
,[Authorize(Users="")]
属性,我应该在 MembershipProvider 和 RoleProvider 中重写哪些方法?
public class CustomMembershipProvider : MembershipProvider
{
// which methods are required?
...
}
和
public class CustomRoleProvider : RoleProvider
{
// which methods are required?
...
}
任何建议,文章,教程?