Can not generate Views in sqlserver. a big problem.
To get OrmLite.Poco.tt working, must remove the blank lines at the end of OrmLite.Poco.tt and OrmLite.Core.ttinclude(get build errors if do not do this). After generating, I find 21 blank lines on the top in the generation class.
when create solution in Mac by Xamarin Studio, can not generate file automatic, but in windows it’s ok.
OrmLite is predominantly a code-first ORM where you maintain the POCO models, the T4 templates is just a tool to help create the initial Table POCO’s which you’d later maintain after they’ve been generated.
T4 Templates only works reliably on Windows. Since it’s only meant to be run once, run the OrmLite T4 templates on Windows and use the outputs.
Please check the template, I find a lot of guys ask similar questions in the stack overflow, I do not think most developers use code-first method. Database is always the core in the architecture.
This bug is very serious for the guys using Ormlite at first time:
To get OrmLite.Poco.tt working, must remove the blank lines at the end of OrmLite.Poco.tt and OrmLite.Core.ttinclude(get build errors if do not do this).
And I think generate views is very important to keep code clean(i do not want to join tables by code).
@sirthomas SS also support database first. i think generate POCO of database is good enough. I hope one day SS as famous as Rails or Django. If SS support more code style or platform, i will get more happiness.