locked
Dynamic Data using Code First Entity Framework Model RRS feed

  • Question

  • User1848025258 posted

    I have used Dynamic Data before using LinqToEntity where my Entity model used the Data First model and the GUI.  Now I am trying to use the Code First model witht he Entity CTP 4.  I have my model created and created a new Dynamic Data site.  I read that I need to replace the default RegisterContext call:

    DefaultModel.RegisterContext(typeof(PriceLoaderContext), new ContextConfiguration() { ScaffoldAllTables = true });

    with

    DefaultModel.RegisterContext(new DomainModelProvider(typeof(PriceLoaderContext)), new ContextConfiguration() { ScaffoldAllTables = true }); 

    When I search further on DomainModelProvider, I find that it is part of the WCF RIA. Is this correct? Is this what I need for this to work? Has anyone else done this and got it to work?


    Thanks,
    Fred Gohsman

    Wednesday, October 20, 2010 9:09 AM

Answers

All replies