C# - entity framework - .NET
Project structure
This project use Entity Framework to access the SQL database. The project use Code First method, because we don't use an already existing big database. Any changes in code, will need a migration update.
The database connection is made by this part of the code. We have a Post class, where we can add members, by the constructor.
There is also an important thing, we have to override the toString method, to print an element correctly, and legibly.
Here is the database structure:
For the GUI, I used the WindowsForms.
The features are the follows :
You can add:
With the submit button, the program will add the user data to the database
Here, you can type your username, and password. But also access the registration. The mute button can turn off the background music.
You can add money into your bank account
You can also take out your money
If you no longer want to be a customer, you can delete your account. The program will erase the user from the database
If you type as username 'ADMIN' and password '1', you will access the admin mode, where you can monitor and manage the users.