This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a Manufacturing Execution System (MES) built with .NET 8.0. The solution consists of two main projects:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
IMPORTANT: All code must be compatible with Oracle 11g Release 11.2.0.1.0
appsettings.json
DbContext<T>
(MES.Service/DB/DbContext.cs:10) - Generic repository patternSqlSugarHelper
(MES.Service/DB/SqlSugarHelper.cs:6) - Oracle-specific helper with transaction supportservice/
: Internal service DTOswebApi/
: External API DTOs for ERP integration# Build the entire solution
dotnet build
# Build specific project
dotnet build MESApplication/MESApplication.csproj
dotnet build MES.Service/MES.Service.csproj
# Run the web application
dotnet run --project MESApplication
# Run in specific configuration
dotnet run --project MESApplication --configuration Release
# Restore NuGet packages
dotnet restore
# Clean build artifacts
dotnet clean
# Publish for deployment
dotnet publish MESApplication -c Release -o ./publish
appsettings.json
AppSettings.DataBaseConn
AppSettings.TestErpUrl
AppSettings.ProductionErpUrl
MESApplication/appsettings.json
Most business logic follows the Manager pattern:
- Managers in MES.Service/service/
handle business operations
- Controllers in MESApplication/Controllers/
handle HTTP requests
- Models in MES.Service/Modes/
represent database entities
Services are manually instantiated rather than using dependency injection containers. When adding new services, follow the existing pattern in the respective Manager classes.
No test projects are currently configured in this solution. When adding tests, create separate test projects following .NET testing conventions.