Exemple #1
0
        public override bool Equals(object obj)
        {
            var other = obj as RoleObject;

            if (other == null)
            {
                return(false);
            }
            return(RoleID.Equals(other.RoleID) && ObjectID.Equals(other.ObjectID));
        }
Exemple #2
0
        public override bool Equals(object obj)
        {
            var other = obj as UserRole;

            if (other == null)
            {
                return(false);
            }
            return(RoleID.Equals(other.RoleID) && UserID.Equals(other.UserID));
        }
Exemple #3
0
 public override bool Equals(object obj)
 {
     return(RoleID.Equals(obj));
 }