コード例 #1
0
        public static ForeignKeyViolationException UnaryBinary(string fromRelvar, int column, string toRelvar, Obj[] toTuple)
        {
            ForeignKeyType type = new UnaryBinaryForeignKeyType(column);

            return(new ForeignKeyViolationException(type, fromRelvar, toRelvar, new Obj[] { toTuple[column - 1] }, toTuple));
        }
コード例 #2
0
        //////////////////////////////////////////////////////////////////////////////

        public static ForeignKeyViolationException UnaryBinary(string fromRelvar, int column, string toRelvar, Obj fromArg)
        {
            ForeignKeyType type = new UnaryBinaryForeignKeyType(column);

            return(new ForeignKeyViolationException(type, fromRelvar, toRelvar, new Obj[] { fromArg }, null));
        }