Ask a questionAsk a question
 

General DiscussionError in the CTP2 POCO template

  • Thursday, November 05, 2009 2:36 PMsm15455MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

  • Thursday, November 05, 2009 4:30 PMNoam Ben-Ami - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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.
  • Thursday, November 05, 2009 10:43 PMsm15455MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    <polemic>Noam, I know that, but you could have at least checked it still created valid code</polemic> :)
  • Friday, November 06, 2009 1:51 AMDiego B VegaMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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 AMsm15455MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Diego,

    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 PMDiego B VegaMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    No, 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 AMsm15455MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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.
  • Friday, November 13, 2009 5:58 PMJonathan Winata Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Diego what is the ETA of POCO templates?
  • Sunday, November 15, 2009 7:19 PMDiego B VegaMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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.
  • Sunday, November 15, 2009 7:58 PMDiego B VegaMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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.