Search code examples
c#ormlite-servicestack

ormlite - generate poco files


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!


Solution

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

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