first commit

This commit is contained in:
bing
2026-04-03 11:32:07 +08:00
commit 003be19522
1142 changed files with 185854 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#include "../include/precompiled.h"
#include "../include/CUser.h"
#include <QxOrm_Impl.h>
QX_REGISTER_CPP_QX_DLL2(CUser)
namespace qx {
template <> void register_class(QxClass<CUser> & t)
{
IxDataMember * pData = NULL;
IxSqlRelation * pRelation = NULL;
IxValidator * pValidator = NULL;
pData = t.data(& CUser::m_lUserId, "idUser", 0);
pData = t.data(& CUser::m_sProfil, "profil", 0); pData->setSqlAlias("profil");
pData = t.data(& CUser::m_bIsAdmin, "isAdmin", 1);
pData = t.data(& CUser::m_dtModif, "dtModif", 1);
pRelation = t.relationManyToOne(& CUser::m_pBrother, "brother", 2);
QxValidatorX<CUser> * pAllValidator = t.getAllValidator();
if (! pAllValidator) { qAssert(false); return; }
pValidator = pAllValidator->add_RecursiveValidator<qx::test::CPerson *>("brother");
}}