Esempio n. 1
0
 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));
     }
 }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
 public ForeignKeyCheckerSBU(SymBinaryTableUpdater source, UnaryTableUpdater target)
 {
     Debug.Assert(source.store == target.store);
     this.source = source;
     this.target = target;
 }
Esempio n. 4
0
 public ForeignKeyCheckerSTSB(Sym12TernaryTableUpdater source, SymBinaryTableUpdater target)
 {
     Debug.Assert(source.store12 == target.store);
     this.source = source;
     this.target = target;
 }