Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (SourceId.GetHashCode());
         hashCode = (hashCode * 397) ^ (CommandText.GetHashCode());
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked             // Overflow is fine, just wrap
     {
         var hash = (int)2166136261;
         hash = (hash * 16777619) ^ ConnectionString.GetHashCode();
         hash = (hash * 16777619) ^ CommandText.GetHashCode();
         hash = (hash * 16777619) ^ CommandType.GetHashCode();
         foreach (var parameter in Parameters)
         {
             hash = (hash * 16777619) ^ parameter.GetHashCode();
         }
         return(hash);
     }
 }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     return(CommandText != null ? CommandText.GetHashCode() : 0);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 => CommandText.GetHashCode() ^ Arguments.GetHashCode();
Ejemplo n.º 5
0
 public override int GetHashCode()
 {
     return(CommandText.GetHashCode());
 }