public static UserRole FindRole(string RoleName) { using (CarrotCMSDataContext _db = CarrotCMSDataContext.Create()) { return (from r in _db.membership_Roles where r.Name == RoleName select new UserRole(r)).FirstOrDefault(); } }