public override bool Equals(object obj) { if (obj == null || !(obj is ERRestaurantEntity)) { return(false); } return(RestaurantID.Equals((obj as ERRestaurantEntity).RestaurantID)); }
public override bool Equals(object obj) { if (obj == null || !(obj is ERRestaurantComment)) { return(false); } return(RestaurantID.Equals((obj as ERRestaurantComment).RestaurantID) & FromUserID.Equals((obj as ERRestaurantComment).FromUserID) & CommentContent.Equals((obj as ERRestaurantComment).CommentContent) & CommentTime.Equals((obj as ERRestaurantComment).CommentTime)); }