MVC 3 Entity Framework

Discussion in 'General troubleshooting' started by coopervegas, Mar 28, 2012.

  1. Hi, I'm learning using the MvcMusicStore application if anyone is familiar with it.

    It creates a local db and uses EF code-first approach to create the db.

    I'm trying to get that working as close as possible on my hosted site but running into problems.

    I think my problem is you cannot create the DB via code first, is that true?

    If it is true, I'm wondering if there is a way I can use as much of the code-first stuff as possible, maybe it can dymanically delete/add tables but the db itself stays manually created.

    Anyone have any tips on how to get started or where to look? Thanks.
     
  2. Elshadriel

    Elshadriel Winhost Staff

    You can try creating the database in your local environment, upload it to your site account, and then restore it using the tools in the Control Panel.
     

Share This Page