diff --git a/drogon_ctl/templates/restful_controller_base_h.csp b/drogon_ctl/templates/restful_controller_base_h.csp index db67c853..10281304 100644 --- a/drogon_ctl/templates/restful_controller_base_h.csp +++ b/drogon_ctl/templates/restful_controller_base_h.csp @@ -19,6 +19,7 @@ auto modelName = tableInfo.get("className"); $$<<"#include \""<("hasPrimaryKey")==1); $$<<"using namespace drogon;\n"; +$$<<"using namespace drogon::orm;\n"; $$<<"using namespace drogon_model::"<("dbName"); auto &schema=tableInfo.get("schema"); @@ -83,4 +84,4 @@ class [[className]]Base : public RestfulController { $$<<"}\n"; } -%> \ No newline at end of file +%>