Base solution for your next web application
Open Closed

Power Tool - Auto Migration Not Working | How to Generate code in Windows #11510


User avatar
0
faisalalam created
  1. During class generation with Power tool we already selected Add Migration and Update Database but it's not working automatically. We have to manually do that every time

  2. We are upgrading our old solution to new 12.1 version. We have generated many classess earlier and have json file in RAD folder. Can we regerate the code from existing json file using command promt like Linux mac. We are usung Windows.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @faisalalam

    1. We haven't faced this problem before. Do you have ef core tools installed globally ? See https://learn.microsoft.com/en-us/ef/core/cli/dotnet
    2. Yes, you can regenerate all entities using latest version of Power Tools. But, please note that, if you have made any modification on the generated code, it will be overwritten.

    For the problem 1, if you have EF Core Tools installed, could you share the Power Tools console output's screenshot ?

    Thanks,

  • User Avatar
    0
    faisalalam created

    Is there any guide line for second question or step by step how to generate code from jsone file

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You just need to run dotnet AspNetZeroRadTool.dll YourEntity.Json command in the aspnet-core\AspNetZeroRadTool folder.