void OnTupleChanged(object sender, SoodaRelationTupleChangedArgs args) { if (!masterValue.Equals(masterColumn == 0 ? args.Right : args.Left)) { return; } SoodaObject obj = _factory.GetRef(transaction, masterColumn == 0 ? args.Left : args.Right); if (args.Mode == 1) { InternalAdd(obj); } else if (args.Mode == -1) { InternalRemove(obj); } }
void OnTupleChanged(object sender, SoodaRelationTupleChangedArgs args) { if (!masterValue.Equals(masterColumn == 0 ? args.Right : args.Left)) return; SoodaObject obj = _factory.GetRef(transaction, masterColumn == 0 ? args.Left : args.Right); if (args.Mode == 1) InternalAdd(obj); else if (args.Mode == -1) InternalRemove(obj); }