first commit
This commit is contained in:
23
test/qxDllSample/dll2/qx/Bar.qx.cpp
Normal file
23
test/qxDllSample/dll2/qx/Bar.qx.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#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");
|
||||
}}
|
||||
Reference in New Issue
Block a user