public bool Equals(BulkMoveAuthor other) { if (other == null) { return(false); } return(AuthorId.Equals(other.AuthorId)); }
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)); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj.GetType() != GetType()) { return(false); } return(AuthorId.Equals(((BulkMoveAuthor)obj).AuthorId)); }