Ejemplo n.º 1
0
        /// <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)
                 ));
        }