418.B Prepare and Launch App for Lookup Resource Entities of ABP framework applications - chempkovsky/CS82ANGULAR GitHub Wiki
- make sure Directory.Build.props (we have two files) looks like below
<Project>
<PropertyGroup>
<DefineConstants>NOTMODELING</DefineConstants>
</PropertyGroup>
</Project>
- In the command line terminal make the folder of the
rupbes.firstapp.EntityFrameworkCore.csproj
-project to be active- run ef migrations for the
LpPhbkDbContext
-Dbcontext
- run ef migrations for the
dotnet ef migrations add AddLpPhbk --context "LpPhbkDbContext"
-
build and run
rupbes.firstapp.DbMigrator.csproj
console application to make modifications in the databases. -
In our case
appsettings.json
of therupbes.firstapp.HttpApi.Host.csproj
contains the following:
"RabbitMQ": {
"Connections": {
"Default": {
"HostName": "192.168.2.12",
"Port": "5672"
}
},
"EventBus": {
"ClientName": "firstapp",
"ExchangeName": "firstappExchange",
"ConnectionName": "Default",
"VirtualHost": "abpphbkhost"
}
}
- Launch App of the
rupbes.firstapp.HttpApi.Host.csproj
. Here is a result
Click to show the picture
- start angular app and add or modify a pair of row for division.
- make sure your database tables of the
LpPhbkDbContext
populated with the new rows
- make sure your database tables of the