-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommand.txt
More file actions
60 lines (42 loc) · 1.49 KB
/
Command.txt
File metadata and controls
60 lines (42 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
### For Installing Entity Framework Core ###
>> dotnet add package Microsoft.EntityFrameworkCore.SqlServer
>> dotnet add package Microsoft.EntityFrameworkCore.Design
>> dotnet restore
### For Adding Initial Migration ###
>> dotnet ef migrations add InitialModel
>> dotnet ef migrations remove
>> dotnet ef migrations add InitialModel
>> dotnet ef database update
### Removing The Updated database
>> dotnet ef database update 0
>> dotnet ef migrations remove
### Apply Constrain
>> dotnet ef migrations add ApplyConstrains
>> dotnet ef database update
### Seeding database
>> dotnet ef migrations add SeedDatabase
>> dotnet ef database update
### Downgrade the database to ApplyConstrains
>> dotnet ef database update ApplyConstrains
>> dotnet ef database update
### Adding Dotnet watch tools
>> dotnet restore
>> dotnet watch run
### Adding Auto Mapper
>> dotnet add package AutoMapper
>> dotnet add package AutoMapper.Extensions.Microsoft.DependencyInjection
### Creating new Component
>> cd ClientApp
>> ng g component vechile-form
### Adding Toast notification
>> npm install ng2-toasty
### Deploying ASP.net Core Angular Apps
>> cd ClientApp
>> ng build --extract-css "--prod"
>> cd ..
>> dotnet publish
### Upgrading EntityFramework
>> setx ASPNETCORE_ENVIRONMENT "Production"
>> dotnet ef database drop
>> dotnet ef migrations add InitialCreate
>> dotnet ef database update