first commit
This commit is contained in:
28
test/qxDllSample/dll2/qx/Foo.qx.cpp
Normal file
28
test/qxDllSample/dll2/qx/Foo.qx.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#include "../include/precompiled.h"
|
||||
|
||||
#include "../include/Foo.h"
|
||||
|
||||
#include <QxOrm_Impl.h>
|
||||
|
||||
QX_REGISTER_CPP_QX_DLL2(Foo)
|
||||
QX_PERSISTABLE_CPP(Foo)
|
||||
|
||||
namespace qx {
|
||||
template <> void register_class(QxClass<Foo> & t)
|
||||
{
|
||||
IxDataMember * pData = NULL;
|
||||
IxSqlRelation * pRelation = NULL;
|
||||
|
||||
pData = t.data(& Foo::m_sName, "name");
|
||||
pData = t.data(& Foo::m_sDesc, "desc");
|
||||
pData = t.data(& Foo::m_oDateNeutral, "date_neutral");
|
||||
pData = t.data(& Foo::m_oTimeNeutral, "time_neutral");
|
||||
pData = t.data(& Foo::m_oDateTimeNeutral, "dt_neutral");
|
||||
|
||||
#ifdef _QX_ENABLE_BOOST
|
||||
pData = t.data(& Foo::m_optInt, "optional_int");
|
||||
pData = t.data(& Foo::m_optString, "optional_string");
|
||||
#endif // _QX_ENABLE_BOOST
|
||||
|
||||
pRelation = t.relationOneToMany(& Foo::m_pBarX, "lstBar", "foo_id");
|
||||
}}
|
||||
Reference in New Issue
Block a user