protected bool Equals(LogEvent other)
 {
     return(String.Equals(Id, other.Id, StringComparison.InvariantCultureIgnoreCase) &&
            String.Equals(CompanyId, other.CompanyId, StringComparison.InvariantCultureIgnoreCase) &&
            String.Equals(Message, other.Message, StringComparison.InvariantCultureIgnoreCase) &&
            Value == other.Value &&
            CreatedUtc.Equals(other.CreatedUtc));
 }
 protected bool Equals(Employee other)
 {
     return(String.Equals(Id, other.Id, StringComparison.InvariantCultureIgnoreCase) &&
            String.Equals(CompanyId, other.CompanyId, StringComparison.InvariantCultureIgnoreCase) &&
            String.Equals(CompanyName, other.CompanyName, StringComparison.InvariantCultureIgnoreCase) &&
            String.Equals(Name, other.Name, StringComparison.InvariantCultureIgnoreCase) &&
            Age == other.Age &&
            YearsEmployed == other.YearsEmployed &&
            CreatedUtc.Equals(other.CreatedUtc) &&
            UpdatedUtc.Equals(other.UpdatedUtc) &&
            Version == other.Version);
 }
Esempio n. 3
0
 public bool Equals(Customers other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Id == other.Id && string.Equals(FirstName, other.FirstName) &&
            string.Equals(LastName, other.LastName) && CreatedUtc.Equals(other.CreatedUtc) && Age == other.Age &&
            Amount == other.Amount && Deleted == other.Deleted && string.Equals(Version, other.Version));
 }
Esempio n. 4
0
        public bool Equals(Common other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(string.Equals(Owner, other.Owner) &&
                   CreatedUtc.Equals(other.CreatedUtc) &&
                   ModifiedUtc.Equals(other.ModifiedUtc) &&
                   PublishedUtc.Equals(other.PublishedUtc) &&
                   Container == other.Container);
        }
Esempio n. 5
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Indicates whether the current object is equal to another object of the same type.
        /// </summary>
        ///
        /// <param name="other">    An object to compare with this object. </param>
        ///
        /// <returns>
        /// true if the current object is equal to the <paramref name="other">other</paramref> parameter;
        /// otherwise, false.
        /// </returns>
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        public bool Equals(Motorcycle other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Id == other.Id &&
                   TenantId == other.TenantId &&
                   IsDeleted == other.IsDeleted &&
                   string.Equals(Make, other.Make, StringComparison.CurrentCulture) &&
                   string.Equals(Model, other.Model, StringComparison.CurrentCulture) &&
                   Year == other.Year &&
                   string.Equals(Vin, other.Vin, StringComparison.CurrentCulture) &&
                   CreatedUtc.Equals(other.CreatedUtc) &&
                   ModifiedUtc.Equals(other.ModifiedUtc));
        }