Exemplo n.º 1
0
        public bool Equals(BulkMoveAuthor other)
        {
            if (other == null)
            {
                return(false);
            }

            return(AuthorId.Equals(other.AuthorId));
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            var entity = obj as BookEntity;

            return(entity != null &&
                   base.Equals(obj) &&
                   Title == entity.Title &&
                   ReleaseDate == entity.ReleaseDate &&
                   AuthorId.Equals(entity.AuthorId) &&
                   EqualityComparer <AuthorEntity> .Default.Equals(Author, entity.Author));
        }
Exemplo n.º 3
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj.GetType() != GetType())
            {
                return(false);
            }

            return(AuthorId.Equals(((BulkMoveAuthor)obj).AuthorId));
        }