POCO generation using templates
Posted: Wed 01 Jun 2011 21:26
When I add a POCO template to the model in VS 2010 a ModelName.POCO Entity.tmpl file is created. There is no Custom Tool assigned to it, so, it is NOT part of the build process.
If I use the TextTemplatingFileGenerator which is used for the T4 templates in VS, the transformation won't run, because:
No processor was specified for a directive named 'property'. The transformation will not be run. ... Gdnet2.POCO Entity.tmpl
Is this supposed to work in VS environment, or is this feature work in Entity Developer only?
When I use the custom generation, do I have to turn off the default DevartLinqToSqlGenerator for the lqml file, similarly to the EF POCO templates?
If I use the TextTemplatingFileGenerator which is used for the T4 templates in VS, the transformation won't run, because:
No processor was specified for a directive named 'property'. The transformation will not be run. ... Gdnet2.POCO Entity.tmpl
Is this supposed to work in VS environment, or is this feature work in Entity Developer only?
When I use the custom generation, do I have to turn off the default DevartLinqToSqlGenerator for the lqml file, similarly to the EF POCO templates?