Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ormlite - generate poco files [closed]

I am new to ORMLite. In Entity Framework I can create my POCO files (by using CodeFirst) from an existing database- I read somewhere that this was possible in Ormlite- but I didn't find it within the documentation.

Please recommend a framework to create my poco classes in case ORMLite does not support this feature (I do not want to generate my pocos with EF!)

Thank you!

like image 819
garlic angel Avatar asked Dec 27 '22 09:12

garlic angel


2 Answers

To get OrmLite.Poco.tt working, remove the blank lines at the end of OrmLite.Poco.tt and OrmLite.Core.ttinclude.

like image 60
Rob Avatar answered Dec 28 '22 22:12

Rob


You can use the T4 templates to generate the POCOs. Have a look at

https://github.com/ServiceStack/ServiceStack.OrmLite/tree/master/src/T4

like image 37
Guru Kathiresan Avatar answered Dec 28 '22 22:12

Guru Kathiresan