Fix missing "using namespace drogon::orm;" at autogenerated restful controller (#1178)
This commit is contained in:
parent
4b31f93767
commit
0e3ee5fad0
|
@ -19,6 +19,7 @@ auto modelName = tableInfo.get<std::string>("className");
|
|||
$$<<"#include \""<<modelName<<".h\"\n";
|
||||
bool hasPrimaryKey = (tableInfo.get<int>("hasPrimaryKey")==1);
|
||||
$$<<"using namespace drogon;\n";
|
||||
$$<<"using namespace drogon::orm;\n";
|
||||
|
||||
$$<<"using namespace drogon_model::"<<tableInfo.get<std::string>("dbName");
|
||||
auto &schema=tableInfo.get<std::string>("schema");
|
||||
|
@ -83,4 +84,4 @@ class [[className]]Base : public RestfulController
|
|||
{
|
||||
$$<<"}\n";
|
||||
}
|
||||
%>
|
||||
%>
|
||||
|
|
Loading…
Reference in New Issue