Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/25/10 19:48:26 (14 years ago)
Author:
bfarka
Message:

changed persistence for roles and implemented first Method in RoleProvider --> FinAllUsers (#1046)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabRoleProvider.cs

    r3943 r3951  
    11using System;
    22using System.Web.Security;
     3using System.Linq;
    34using Persistence;
    45
     
    5152
    5253    public override bool RoleExists(string roleName) {
    53       throw new NotImplementedException();
     54
     55      Persistence.DataClassesDataContext db = DatabaseUtil.createDataClassesDataContext();
     56      bool returnValue = (DatabaseUtil.createDataClassesDataContext().HeuristicLabRole.Count(r => r.RoleName == roleName) == 1);
     57      db.Connection.Close();
     58      return returnValue;
     59
    5460    }
    5561  }
Note: See TracChangeset for help on using the changeset viewer.