# PamsDatabase

**Kind:** Module

**Source:** `Pams/PamsDatabase/PamsDatabase.sln` (line 1)

**Part of:** [Pams](subsystem-pams)

.NET solution file

`PamsDatabase.sln` is the .NET solution entry point for the PamsDatabase area of the Pams system. It groups the database-related projects so they can be restored, built, tested, and opened together in supported .NET tooling.

## Diagram

```mermaid
graph TD
  Solution[PamsDatabase.sln]
  Solution --> Projects[Database-related .NET projects]
  Projects --> Build[dotnet build]
  Projects --> Test[dotnet test]
  Projects --> IDE[Visual Studio or Rider]
```

## Usage

```ts
import { execFileSync } from "node:child_process";

const solutionPath = "Pams/PamsDatabase/PamsDatabase.sln";

execFileSync("dotnet", ["restore", solutionPath], {
  stdio: "inherit",
});

execFileSync("dotnet", ["build", solutionPath], {
  stdio: "inherit",
});
```

## AI Coding Instructions

- Treat `PamsDatabase.sln` as the entry point for database-related .NET projects and commands.
- Run `dotnet restore` before building when dependencies may not be available locally.
- Build or test through the solution path when validating changes that span multiple projects.
- Keep project references and build configuration changes synchronized with the solution file.
- Do not add application logic to the solution file; add code to the appropriate project included by the solution.

## Relationships

- MODULE_DECLARES → `Pams.Database`
