sudo apt-get install mysql-server
sudo mysql_secure_installation
sudo mysql -u root
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '*********';
FLUSH PRIVILEGES;
EXIT;
mysql -u root -p
SELECT user, host, plugin FROM mysql.user WHERE user = 'root';
CREATE DATABASE your_database_name;
CREATE USER 'Winnie'@'localhost' IDENTIFIED BY '********'; GRANT ALL PRIVILEGES ON BankingSystem.* TO 'Winnie'@'localhost'; FLUSH PRIVILEGES;
One user can have multiple transactions, defined by the ICollection Transactions property. ONE TO MANY RELATIONSHIP
Each transaction belongs to one user, defined by the User User property. (ONE TO ONE ) Each transaction has one status, defined by the TransactionStatus Status property.(ONE TO ONE) Each transaction can have multiple additional infos, defined by the ICollection AdditionalInfos property.(ONE TO MANY RELATIONSHIP)
Each status can be associated with multiple transactions, defined by the ICollection Transactions property.(ONE TO MANY)
Each additional info is related to one transaction, defined by the Transaction Transaction property.(ONE TO ONE)
dotnet tool install --global dotnet-ef
dotnet ef --version
Ensure Application Builds Successfully: dotnet run
dotnet ef migrations add InitialCreate
dotnet ef database update
[key]
dotnet new tool-manifest dotnet tool install dotnet-ef --local dotnet tool run dotnet-ef --version dotnet ef --version
adding data to the database that we will use to test
dotnet ef migrations add SeedData
dotnet ef database update
dotnet run
testing the code using postman