Esempio n. 1
0
        internal static void ThrowForeignKeyNotFoundException(DB3 foreignKey, DB3 table)
        {
            var foreignKeyFullName = DbMapping.GetForeignKeyName(foreignKey);

            throw new QueryTalkException("Link.TryGetRelation", QueryTalkExceptionType.ForeignKeyNotFound,
                                         String.Format("table = {0}{1}   foreign key = {2}",
                                                       DbMapping.GetNodeMap(table).Name.Sql,
                                                       Environment.NewLine,
                                                       foreignKeyFullName), Text.Method.By);
        }