Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ EntityTypeGuid.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ EntityTypeGuid.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Unit != null ? Unit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RootExpression != null ? RootExpression.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 3
0
 public bool Equals(EntityModel other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Guid.Equals(other.Guid) && EntityTypeGuid.Equals(other.EntityTypeGuid) && string.Equals(Name, other.Name));
 }
Ejemplo n.º 4
0
 public bool Equals(CalculationModel other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Guid.Equals(other.Guid) && EntityTypeGuid.Equals(other.EntityTypeGuid) && string.Equals(Name, other.Name) && string.Equals(Unit, other.Unit) && string.Equals(RootExpression, other.RootExpression));
 }