Source/NFX/DataAccess/CRUD/Row.cs
/// <summary>
/// Override to perform custom row equality comparison.
/// Default implementation equates rows using their key fields
/// </summary>
Override to perform custom row equality comparison.
Default implementation equates rows using their key fields
Override to perform custom row equality comparison . Default implementation equates rows using their key fields
public virtual bool Equals(Row other)
            {
                if (other==null) return false;
                if (!this.Schema.IsEquivalentTo(other.Schema)) return false;
                foreach(var fdef in Schema.AnyTargetKeyFieldDefs)
                {
                     var obj1 = this[fdef.Order];
                     var obj2 = other[fdef.Order];
                     if (obj1==null && obj2==null) continue;
                     if (! obj1.Equals(obj2) ) return false;
                }
                return true;
            }
public virtual bool Equals ( Row other ) { if ( other == null ) return false ; if ( ! this . Schema . IsEquivalentTo ( other . Schema ) ) return false ; foreach ( var fdef in Schema . AnyTargetKeyFieldDefs ) { var obj1 = this [ fdef . Order ] ; var obj2 = other [ fdef . Order ] ; if ( obj1 == null && obj2 == null ) continue ; if ( ! obj1 . Equals ( obj2 ) ) return false ; } return true ; }
Override to perform custom row equality comparison.
Override to perform custom row equality comparison .
other
Row