Microsoft Developer Network >
Forums Home
>
Data Platform Development (Pre-release) Forums
>
ADO.NET Entity Framework and LINQ to Entities (Pre-Release)
>
Error in the CTP2 POCO template
Error in the CTP2 POCO template
- Hi 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
- Thanks 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. - <polemic>Noam, I know that, but you could have at least checked it still created valid code</polemic> :)
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.- Diego,
When I install the CTP2 it actually adds the POCO templates to Visual Studio!!! Shouldn't it happen?
Byez,
Stefano - No, it should not. Which edition of VS do you have?
This posting is provided "AS IS" with no warranties, and confers no rights. - Ultimate.
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. - Diego what is the ETA of POCO templates?
- Hi 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. - Stefano,
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.

