Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Services.Authentication Prototype/Persistence/HeuristicLabUserRole.cs @ 3992

Last change on this file since 3992 was 3978, checked in by bfarka, 14 years ago

fixed bug in RomveUsersFromRoles and fixed some tests (1046)

File size: 538 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace Persistence {
7  partial class HeuristicLabUserRole {
8    public override bool Equals(object obj) {
9        if(this.ID == null ^ ((HeuristicLabUserRole)obj).ID == null )
10        {
11          return false;
12        }
13        else if (this.ID == null && ((HeuristicLabUserRole)obj).ID == null)
14        {
15         return base.Equals(obj);
16        }
17        return ((HeuristicLabUserRole)obj).ID.Equals(this.ID);
18    }
19  }
20}
Note: See TracBrowser for help on using the repository browser.