Bug fixing on BaseEntity.

It was redefined the GetHashCode method of BaseEntity.