dotnet-ef-migrations


dotnet ef

D:\>dotnet ef

                     _/\__
               ---==/    \\
         ___  ___   |.    \|\
        | __|| __|  |  )   \\\
        | _| | _|   \_/ |  //|\\
        |___||_|       /   \\\/\\

Entity Framework Core .NET Command-line Tools 2.2.3-servicing-35854

Usage: dotnet ef [options] [command]

Options:
  --version        Show version information
  -h|--help        Show help information
  -v|--verbose     Show verbose output.
  --no-color       Don't colorize output.
  --prefix-output  Prefix output with level.

Commands:
  database    Commands to manage the database.
  dbcontext   Commands to manage DbContext types.
  migrations  Commands to manage migrations.

Use "dotnet ef [command] --help" for more information about a command.

D:\>

 

D:\>dotnet ef migrations add InitConfigurationDb -c ConfigurationDbContext -o Data/migrations/identityserver/configdb

D:\>dotnet ef migrations add InitConfigurationDb -c ConfigurationDbContext -o Dat
a/migrations/identityserver/configdb
info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
      Entity Framework Core 2.2.3-servicing-35854 initialized 'ConfigurationDbContext' using provider 'Pomelo.EntityFram
eworkCore.MySql' with options: MigrationsAssembly=AuthServer
Done. To undo this action, use 'ef migrations remove'

D:\>

 

D:\>dotnet ef migrations add InitPersistedGrantDb -c PersistedGrantDbContext -o Data/migrations/identityserver/persistedgrantdb

D:\>dotnet ef migrations add InitPersistedGrantDb -c PersistedGrantDbContext -o D
ata/migrations/identityserver/persistedgrantdb
info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
      Entity Framework Core 2.2.3-servicing-35854 initialized 'PersistedGrantDbContext' using provider 'Pomelo.EntityFra
meworkCore.MySql' with options: MigrationsAssembly=AuthServer
Done. To undo this action, use 'ef migrations remove'

D:\>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM