Base solution for your next web application
Open Closed

Migrator Project Documentation is missing... #2651


User avatar
0
justinp created

Downloaded the new version (3.2) and ran into an issue running the APIj project: "InvalidOperationException: Could not find 'UserSecretsIdAttribute' on assembly 'ApolloEHR.Web.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'."

However, I ran the project without running the database upgrade. So I circled back and read the documentation:

ASPNET ZERO MIGRATOR APPLICATION

AspNet Zero solution includes a .Migrator (like Acme.PhoneBook.Migrator) project in the solution. You can run this tool for database migrations on development and production (see development guide for more information).

However the development guide linked to does not contain any information on the Migrator project. Either the link needs to be fixed or the documentation is missing or both.


5 Answer(s)
  • User Avatar
    0
    justinp created

    So is no one aware of where the EF6 Migrator tool documentation is? Am I missing something? #2653@1c71b90c-f27e-4559-9414-854a033a7d91

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thanks for the information on document, we will check and fix it. Your main problem is not related to migrations I think, you can check this issue for that <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/72">https://github.com/aspnetzero/aspnet-ze ... /issues/72</a>

  • User Avatar
    0
    justinp created

    Thank you for the response. I get a 404 when I click the link you provided. Perhaps I was not added to some group that I need to be.

    However, I'm just looking for documentation on _HOW_to use the Migrator project. The startup documentation only mentions that it can be used as an alternative to using the EF commands Again, here's what the page says:

    ASPNET ZERO MIGRATOR APPLICATION

    AspNet Zero solution includes a .Migrator (like Acme.PhoneBook.Migrator) project in the solution. You can run this tool for database migrations on development and production (see development guide for more information). However, it links to here (<a class="postlink" href="https://www.aspnetzero.com/Documents/Development-Guide-Angular#configuration">https://www.aspnetzero.com/Documents/De ... figuration</a>) but there isn't any information on the Migrator project. This is just a documentation error.

    The link should go here: <a class="postlink" href="https://www.aspnetzero.com/Documents/Development-Guide-Core#migrator-console-application">https://www.aspnetzero.com/Documents/De ... pplication</a>, or better the information on the migrator console should be included in the Angular2 project documentation, supposing it works with that project.

  • User Avatar
    0
    robdocherty created

    Hi Justin - i've been working with the angular 2 app for a couple of weeks trying it out. I love it. I just went to VS 2017 Community and Zero 3.3. I was a bit confused about the migrator docs too, but it's actually pretty simple. If you look inside that project it has a program.cs, so it must be a console app. So just set it as your startup app in VS and hit CTRL+F5 and off it goes. Two things to note. 1) it has its own appsettings.json so you need to set your database conn string in there, and 2) remember to set your statup app back to the .host project when you're done. cheers

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thanks @robdocherty :), We thoght migration tool does not need a documentation but I think we were wrong, maybe we can add a small section about it in the documentations.