using Furion.Extras.iWare.Wms.Service.LowCode.Dto; using System.Diagnostics.CodeAnalysis; namespace Furion.Extras.iWare.Wms.Service.LowCode { public class GenEntityComparer : IEqualityComparer { public bool Equals(GenEntity x, GenEntity y) { bool result = true; if (x == null && y == null) { result = true; } else if (x == null ^ y == null) { result = false; } else { result = (x.TableDesc == y.TableDesc) && (x.ClassName == y.ClassName) && (x.TableName == y.TableName) && (x.NameSpace == y.NameSpace); } return result; } public int GetHashCode([DisallowNull] GenEntity obj) { return obj == null ? 0 : obj.ToString().GetHashCode(); } } }