Example #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));
        }
Example #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));
        }
Example #3
0
 public override bool Equals(object obj)
 {
     return(RoleID.Equals(obj));
 }