Beispiel #1
0
 /// <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 (DatasourceName != null)
         {
             hashCode = hashCode * 59 + DatasourceName.GetHashCode();
         }
         if (DatasourceSvcPropName != null)
         {
             hashCode = hashCode * 59 + DatasourceSvcPropName.GetHashCode();
         }
         if (DatasourceJndiName != null)
         {
             hashCode = hashCode * 59 + DatasourceJndiName.GetHashCode();
         }
         if (JndiProperties != null)
         {
             hashCode = hashCode * 59 + JndiProperties.GetHashCode();
         }
         return(hashCode);
     }
 }
Beispiel #2
0
 /// <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);
     }
 }
Beispiel #3
0
 /// <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 (DatasourceName != null)
         {
             hashCode = hashCode * 59 + DatasourceName.GetHashCode();
         }
         if (DatasourceSvcPropName != null)
         {
             hashCode = hashCode * 59 + DatasourceSvcPropName.GetHashCode();
         }
         if (DriverClassName != null)
         {
             hashCode = hashCode * 59 + DriverClassName.GetHashCode();
         }
         if (Url != null)
         {
             hashCode = hashCode * 59 + Url.GetHashCode();
         }
         if (Username != null)
         {
             hashCode = hashCode * 59 + Username.GetHashCode();
         }
         if (Password != null)
         {
             hashCode = hashCode * 59 + Password.GetHashCode();
         }
         if (DefaultAutoCommit != null)
         {
             hashCode = hashCode * 59 + DefaultAutoCommit.GetHashCode();
         }
         if (DefaultReadOnly != null)
         {
             hashCode = hashCode * 59 + DefaultReadOnly.GetHashCode();
         }
         if (DefaultTransactionIsolation != null)
         {
             hashCode = hashCode * 59 + DefaultTransactionIsolation.GetHashCode();
         }
         if (DefaultCatalog != null)
         {
             hashCode = hashCode * 59 + DefaultCatalog.GetHashCode();
         }
         if (MaxActive != null)
         {
             hashCode = hashCode * 59 + MaxActive.GetHashCode();
         }
         if (MaxIdle != null)
         {
             hashCode = hashCode * 59 + MaxIdle.GetHashCode();
         }
         if (MinIdle != null)
         {
             hashCode = hashCode * 59 + MinIdle.GetHashCode();
         }
         if (InitialSize != null)
         {
             hashCode = hashCode * 59 + InitialSize.GetHashCode();
         }
         if (MaxWait != null)
         {
             hashCode = hashCode * 59 + MaxWait.GetHashCode();
         }
         if (MaxAge != null)
         {
             hashCode = hashCode * 59 + MaxAge.GetHashCode();
         }
         if (TestOnBorrow != null)
         {
             hashCode = hashCode * 59 + TestOnBorrow.GetHashCode();
         }
         if (TestOnReturn != null)
         {
             hashCode = hashCode * 59 + TestOnReturn.GetHashCode();
         }
         if (TestWhileIdle != null)
         {
             hashCode = hashCode * 59 + TestWhileIdle.GetHashCode();
         }
         if (ValidationQuery != null)
         {
             hashCode = hashCode * 59 + ValidationQuery.GetHashCode();
         }
         if (ValidationQueryTimeout != null)
         {
             hashCode = hashCode * 59 + ValidationQueryTimeout.GetHashCode();
         }
         if (TimeBetweenEvictionRunsMillis != null)
         {
             hashCode = hashCode * 59 + TimeBetweenEvictionRunsMillis.GetHashCode();
         }
         if (MinEvictableIdleTimeMillis != null)
         {
             hashCode = hashCode * 59 + MinEvictableIdleTimeMillis.GetHashCode();
         }
         if (ConnectionProperties != null)
         {
             hashCode = hashCode * 59 + ConnectionProperties.GetHashCode();
         }
         if (InitSQL != null)
         {
             hashCode = hashCode * 59 + InitSQL.GetHashCode();
         }
         if (JdbcInterceptors != null)
         {
             hashCode = hashCode * 59 + JdbcInterceptors.GetHashCode();
         }
         if (ValidationInterval != null)
         {
             hashCode = hashCode * 59 + ValidationInterval.GetHashCode();
         }
         if (LogValidationErrors != null)
         {
             hashCode = hashCode * 59 + LogValidationErrors.GetHashCode();
         }
         if (DatasourceSvcProperties != null)
         {
             hashCode = hashCode * 59 + DatasourceSvcProperties.GetHashCode();
         }
         return(hashCode);
     }
 }