A desktop application (WPF) for managing graduation projects, built using Clean Architecture with .NET 8, Entity Framework Core, and Oracle.
- Operating System: Windows
- .NET SDK 8.0 or later
- Oracle Database (e.g., Oracle XE/Free)
- (Optional) Visual Studio 2022 for development and running via the UI
- Open the terminal inside the project folder:
cd MasarApp- Restore packages:
dotnet restore Masar.sln- Build the project:
dotnet build Masar.sln -c Debug- Run the application:
dotnet run --project Masar.UI/Masar.UI.csprojUpon startup, the application automatically:
- Applies migrations
- Creates/updates Views, Procedures, Functions, and Triggers
- Creates a default administrator account (if not already present)
There are two important places that must be updated:
File: Masar.UI/appsettings.json
Modify the MasarDb value inside ConnectionStrings:
{
"ConnectionStrings": {
"MasarDb": "User Id=MASAR;Password=masar;Data Source=192.168.56.101:1521/freepdb1"
}
}File: Masar.Infrastructure/DesignTimeDbContextFactory.cs
Modify the connection string inside UseOracle(...):
optionsBuilder.UseOracle(@"User Id=masar;Password=masar;Data Source=192.168.56.101:1521/FREEPDB1");User Id: Database Username/SchemaPassword: Database User PasswordData Source: Oracle address formatHOST:PORT/SERVICE_NAME
Example:
User Id=NEW_SCHEMA;Password=NEW_PASSWORD;Data Source=127.0.0.1:1521/FREEPDB1
- After changing connection details, restart the application.
- When using
dotnet efcommands, the connection data inDesignTimeDbContextFactorymust be correct.