public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ ConfiguredSemVersion.GetHashCode(); hashCode = (hashCode * 397) ^ MigrationContext.GetHashCode(); hashCode = (hashCode * 397) ^ ProductName.GetHashCode(); hashCode = (hashCode * 397) ^ TargetSemVersion.GetHashCode(); return(hashCode); } }
public bool Equals(MigrationEventArgs other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(base.Equals(other) && ConfiguredSemVersion.Equals(other.ConfiguredSemVersion) && MigrationContext.Equals(other.MigrationContext) && string.Equals(ProductName, other.ProductName) && TargetSemVersion.Equals(other.TargetSemVersion)); }