Files
XdlOrm/test/qxDllSample/dll2/qx/Bar.qx.cpp
2026-04-03 11:32:07 +08:00

24 lines
516 B
C++

#include "../include/precompiled.h"
#include "../include/Bar.h"
#include "../include/Foo.h"
#include <QxOrm_Impl.h>
QX_REGISTER_CPP_QX_DLL2(Bar)
QX_PERSISTABLE_CPP(Bar)
namespace qx {
template <> void register_class(QxClass<Bar> & t)
{
IxDataMember * pData = NULL;
IxSqlRelation * pRelation = NULL;
t.setSoftDelete(qx::QxSoftDelete("deleted_at"));
pData = t.data(& Bar::m_sCode, "code");
pData = t.data(& Bar::m_sValue, "value");
pRelation = t.relationManyToOne(& Bar::m_pFoo, "foo_id");
}}