46 #ifndef __WTX_WEB_BLOGENTRYTEMPLATE_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 47 #define __WTX_WEB_BLOGENTRYTEMPLATE_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 49 #include <Wtx/Dbo/PermissionItemTpl.h> 50 #include "Definition.h" 56 template <
class C>
class Template
61 Template(
const std::string & keyField =
"" )
62 :
Wtx::Dbo::PermissionItemTpl<C>( keyField )
70 static Definition & TableDef()
80 template<
class Action>
void persist( Action &a )
83 datePosted.persist( a, &TableDef().DatePostedFieldDef );
84 summary.persist( a, &TableDef().SummaryFieldDef );
85 thumbnail.persist( a, &TableDef().ThumbnailFieldDef );
86 body.persist( a, &TableDef().BodyFieldDef );
97 #endif // end#ifndef __BLOGENTRYTPL_H___