Advertisement
kromm77

Untitled

Jan 15th, 2021
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. # Abp.Io
  2.  
  3. ## Prerequistites
  4.  
  5. ### Install latest dotnet core sdk version
  6.  
  7. Download from https://dotnet.microsoft.com/download
  8.  
  9. ### Install latest dotnet-ef version
  10.  
  11. ```
  12. dotnet tool install --global dotnet-ef
  13. ```
  14.  
  15. ### Install ABP.IO cli
  16.  
  17. ```
  18. dotnet tool install -g Volo.Abp.Cli
  19. ```
  20.  
  21. ## Generate project
  22.  
  23. ```
  24. abp new Usi.DgtManager -t app -u angular --separate-identity-server --connection-string "Server=localhost;Database=UsiDgtManagerDb;User Id=UsiDgtManagerDbSa;Password=UsiDgtManagerDbSa123;Trusted_Connection=True;MultipleActiveResultSets=true"
  25. ```
  26.  
  27. ```
  28.  
  29. docker run -e ACCEPT_EULA=Y -e SA_PASSWORD=YourStrongPassw0rd -p 1433:1433 --name sqlAbpIo -d mcr.microsoft.com/mssql/server:2017-latest
  30.  
  31. docker exec -it sqlAbpIo /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P YourStrongPassw0rd -Q " CREATE LOGIN AngularSa WITH Password ='AngularSa123'; use master; create database Angular; "
  32.  
  33. docker exec -it sqlAbpIo /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P YourStrongPassw0rd -Q" use Angular;create user AngularSa from login AngularSa;ALTER USER [AngularSa] WITH DEFAULT_SCHEMA=[dbo];exec sp_addrolemember 'db_owner', 'AngularSa';"
  34.  
  35. cd aspnet-core/src/Abpio.TemplateApp.Angular.EntityFrameworkCore
  36.  
  37. dotnet ef database update
  38. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement