Error in the CTP2 POCO template
-
Thursday, November 05, 2009 2:36 PMHi Guys,
in the POCO Template of the CTP2 there is a bug. When the context is generated, the Beta1 property ContextOptions.DeferredLoadingEnabled is used instead of ContextOptions.LazyLoadingEnabled. This causes the code not to compile.
Byez
Stefano
All Replies
-
Thursday, November 05, 2009 4:30 PMModeratorThanks Stefano,
The POCO template only shipped in CTP1. It hasn’t been updated for Beta2 yet. We're working on it. :)
Cheers
Noam
This posting is provided "AS IS" with no warranties, and confers no rights. -
Thursday, November 05, 2009 10:43 PM<polemic>Noam, I know that, but you could have at least checked it still created valid code</polemic> :)
-
Friday, November 06, 2009 1:51 AMModerator
Stefano,
The POCO template shouldn’t be installed in your machine after installing the Feature CTP 2. It is not included. If you are still using the version we shipped in the CTP 1 in some project, yes we have this particular breaking change in the API between beta 1 and beta 2. Until we release an updated version of the POCO template you can go ahead and replace "DeferredLoadingEnabled" with "LazyLoadingEnabled" in the template itself.
The other thing that you should be aware of is that the CTP 1 version of the POCO template doesn't handle the new Foreign Key associations.
Hope this helps,
Diego
This posting is provided "AS IS" with no warranties, and confers no rights. -
Friday, November 06, 2009 11:20 AMDiego,
When I install the CTP2 it actually adds the POCO templates to Visual Studio!!! Shouldn't it happen?
Byez,
Stefano -
Friday, November 06, 2009 7:02 PMModeratorNo, it should not. Which edition of VS do you have?
This posting is provided "AS IS" with no warranties, and confers no rights. -
Saturday, November 07, 2009 7:49 AMUltimate.
I had Visual studio Beta1 Team Suite and Feature CTP1. I uninstalled everything and installed Ultimete Beta2 and Feature CTP2. I have uninstalled CTP2 and manually deleted the template files, I have then reinstalled Feature CTP2 and they were back. -
Friday, November 13, 2009 5:58 PMDiego what is the ETA of POCO templates?
-
Sunday, November 15, 2009 7:19 PMModeratorHi Jonathan,
Unfortunately, we still not have an ETA. We are working on the template at the moment and we still need to figure out how we are going to release it. We will announce it in http://blogs.msdn.com/adonet as soon as we release it.
Is there any particular feature that you are interested in?
Hope this helps,
Diego
This posting is provided "AS IS" with no warranties, and confers no rights. -
Sunday, November 15, 2009 7:58 PMModeratorStefano,
The POCO template is not included in the Feature CTP 2 setup at all. I can only guess that what you are seeing is either the consequence of some setup issue or a leftover from the previous build of the Feature CTP.
Thanks,
Diego
This posting is provided "AS IS" with no warranties, and confers no rights. -
Wednesday, December 02, 2009 6:45 PMDiego,Is there an ETA on POCO templates yet? I'm getting desperate!Thanks,Sam
-
Monday, December 07, 2009 6:24 PMBump.
-
Monday, December 07, 2009 8:16 PMBump.
-
Tuesday, December 15, 2009 12:26 PMBump.
-
Wednesday, December 16, 2009 12:39 AMEagerly waiting for POCO template
-
Thursday, December 17, 2009 8:48 AMBump
-
Friday, December 18, 2009 1:21 PMAny update on POCO template.
Thanks,
Ashwani -
Sunday, December 20, 2009 2:34 PMAs an exercise I migrated the T4 POCO template from CTP1 to use in VS 2010 Beta 2. Although it doesn't take advantage of CTP2 features (like FK Associations), it might be enough to tide you over for a while:
http://blog.tonysneed.com/2009/12/13/adding-your-own-t4-templates-for-ef4-to-visual-studio-2010
Cheers,
Tony -
Friday, January 15, 2010 7:53 AMAny news on this?
-
Monday, January 25, 2010 10:20 PMModeratorI am happy to announce that an updated version of the POCO Template that works with Beta 2 is now available. For more details go to this post.
Thanks, Diego
This posting is provided "AS IS" with no warranties, and confers no rights.

