示例#1
0
 public override void CreateRole(string roleName)
 {
     if (this.RoleExists(roleName))
     {
         throw NhibernateMembershipProviderExceptionUtil.NewProviderException(this, NHibernateProviderSR.Role_AlreadyExists);
     }
     try
     {
         SystemRoleWrapper.CreateRole(roleName);
     }
     catch (Exception exception)
     {
         throw NhibernateMembershipProviderExceptionUtil.NewProviderException(this, NHibernateProviderSR.Role_UnableToCreate, exception);
     }
 }