Beispiel #1
0
 public void WasDeleted(int surr2)
 {
     if (source.Contains2(surr2))
     {
         throw ForeignKeyViolation(surr2);
     }
 }
        public void Check()
        {
            int count = source.insertCount;

            if (count > 0)
            {
                int[] inserts = source.insertList;
                for (int i = 0; i < count; i++)
                {
                    if (!target.Contains2(inserts[i]))
                    {
                        throw ToTernaryForeignKeyViolation2(inserts[i]);
                    }
                }
            }

            target.CheckDeletes231(this);
        }