none
Problem with EF6 DynamicData RRS feed

Answers

  • Hello,

    >>Error 8 'RendicontazioneEntities' is a 'type' but is used like a 'variable'

    The “new” should be a key work to initialize an instance of a type, have a try with below:

    DefaultModel.RegisterContext(
    
                 new Microsoft.AspNet.DynamicData.ModelProviders.EFDataModelProvider(() => 
    
                     new RendicontazioneEntities()),
    
                     new ContextConfiguration { ScaffoldAllTables = true });
    

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, April 3, 2014 7:59 AM
    Moderator

All replies

  • Hello,

    >>Error 8 'RendicontazioneEntities' is a 'type' but is used like a 'variable'

    The “new” should be a key work to initialize an instance of a type, have a try with below:

    DefaultModel.RegisterContext(
    
                 new Microsoft.AspNet.DynamicData.ModelProviders.EFDataModelProvider(() => 
    
                     new RendicontazioneEntities()),
    
                     new ContextConfiguration { ScaffoldAllTables = true });
    

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, April 3, 2014 7:59 AM
    Moderator
  • It works. And everythink works without problem also with Dynamic Data Web Site, not only with Dynamic data Web project!

    thanks


    matteo ghetti

    Wednesday, April 16, 2014 7:13 AM