public void CheckDelete(int surr1, int surr2, SymBinaryTableUpdater target) { if (source.Contains12(surr1, surr2) && !target.Contains(surr1, surr2)) { throw ForeignKeyViolation(surr1, surr2, source.LookupAny12(surr1, surr2)); } }
public void CheckDelete(int arg1, int arg2, SymBinaryTableUpdater target) { if (source.Contains(arg1) && !target.Contains(arg1)) { throw ForeignKeyViolation(arg1, arg2); } if (source.Contains(arg2) && !target.Contains(arg2)) { throw ForeignKeyViolation(arg2, arg1); } }
public ForeignKeyCheckerSBU(SymBinaryTableUpdater source, UnaryTableUpdater target) { Debug.Assert(source.store == target.store); this.source = source; this.target = target; }
public ForeignKeyCheckerSTSB(Sym12TernaryTableUpdater source, SymBinaryTableUpdater target) { Debug.Assert(source.store12 == target.store); this.source = source; this.target = target; }