/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (JdbcDriverClass != null) { hashCode = hashCode * 59 + JdbcDriverClass.GetHashCode(); } if (JdbcConnectionUri != null) { hashCode = hashCode * 59 + JdbcConnectionUri.GetHashCode(); } if (JdbcUsername != null) { hashCode = hashCode * 59 + JdbcUsername.GetHashCode(); } if (JdbcPassword != null) { hashCode = hashCode * 59 + JdbcPassword.GetHashCode(); } if (JdbcValidationQuery != null) { hashCode = hashCode * 59 + JdbcValidationQuery.GetHashCode(); } if (DefaultReadonly != null) { hashCode = hashCode * 59 + DefaultReadonly.GetHashCode(); } if (DefaultAutocommit != null) { hashCode = hashCode * 59 + DefaultAutocommit.GetHashCode(); } if (PoolSize != null) { hashCode = hashCode * 59 + PoolSize.GetHashCode(); } if (PoolMaxWaitMsec != null) { hashCode = hashCode * 59 + PoolMaxWaitMsec.GetHashCode(); } if (DatasourceName != null) { hashCode = hashCode * 59 + DatasourceName.GetHashCode(); } if (DatasourceSvcProperties != null) { hashCode = hashCode * 59 + DatasourceSvcProperties.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if ComDayCommonsDatasourceJdbcpoolJdbcPoolServiceProperties instances are equal /// </summary> /// <param name="other">Instance of ComDayCommonsDatasourceJdbcpoolJdbcPoolServiceProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComDayCommonsDatasourceJdbcpoolJdbcPoolServiceProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( JdbcDriverClass == other.JdbcDriverClass || JdbcDriverClass != null && JdbcDriverClass.Equals(other.JdbcDriverClass) ) && ( JdbcConnectionUri == other.JdbcConnectionUri || JdbcConnectionUri != null && JdbcConnectionUri.Equals(other.JdbcConnectionUri) ) && ( JdbcUsername == other.JdbcUsername || JdbcUsername != null && JdbcUsername.Equals(other.JdbcUsername) ) && ( JdbcPassword == other.JdbcPassword || JdbcPassword != null && JdbcPassword.Equals(other.JdbcPassword) ) && ( JdbcValidationQuery == other.JdbcValidationQuery || JdbcValidationQuery != null && JdbcValidationQuery.Equals(other.JdbcValidationQuery) ) && ( DefaultReadonly == other.DefaultReadonly || DefaultReadonly != null && DefaultReadonly.Equals(other.DefaultReadonly) ) && ( DefaultAutocommit == other.DefaultAutocommit || DefaultAutocommit != null && DefaultAutocommit.Equals(other.DefaultAutocommit) ) && ( PoolSize == other.PoolSize || PoolSize != null && PoolSize.Equals(other.PoolSize) ) && ( PoolMaxWaitMsec == other.PoolMaxWaitMsec || PoolMaxWaitMsec != null && PoolMaxWaitMsec.Equals(other.PoolMaxWaitMsec) ) && ( DatasourceName == other.DatasourceName || DatasourceName != null && DatasourceName.Equals(other.DatasourceName) ) && ( DatasourceSvcProperties == other.DatasourceSvcProperties || DatasourceSvcProperties != null && DatasourceSvcProperties.Equals(other.DatasourceSvcProperties) )); }