# System.Web.DynamicData

**Kind:** Service

**Source:** `Pams/API/Pams.API/Pams.API.csproj` (line 1)

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

NuGet package dependency

`System.Web.DynamicData` is a NuGet package dependency declared by the Pams API project. It supports legacy ASP.NET Dynamic Data features in the server-side application and is restored through the project file during .NET builds.

## Diagram

```mermaid
sequenceDiagram
    participant Build as .NET Build
    participant Project as Pams.API.csproj
    participant NuGet as NuGet Restore
    participant Package as System.Web.DynamicData
    participant API as Pams API

    Build->>Project: Read package dependency
    Project->>NuGet: Request package restore
    NuGet->>Package: Download dependency
    Package-->>API: Make Dynamic Data assemblies available
```

## Usage

```ts
// System.Web.DynamicData runs in the .NET server project.
// JavaScript clients interact with API endpoints exposed by that application.

async function loadDynamicDataRecords() {
  const response = await fetch("/api/records");

  if (!response.ok) {
    throw new Error(`Request failed: ${response.status}`);
  }

  return response.json();
}

loadDynamicDataRecords()
  .then((records) => console.log(records))
  .catch((error) => console.error(error));
```

## AI Coding Instructions

- Keep the `System.Web.DynamicData` package reference in `Pams.API.csproj` unless related ASP.NET Dynamic Data code is removed.
- Treat this dependency as server-side .NET functionality; do not import it from TypeScript or browser code.
- Restore NuGet packages before building the Pams API project.
- Check for framework compatibility before changing the package version or migrating the project format.

## Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Injected or called by (1)

- `Pams.API` — `Pams/API/Pams.API/Pams.API.csproj`:1
