# System.Data.DataSetExtensions

**Kind:** Service

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

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

NuGet package dependency

`System.Data.DataSetExtensions` is a NuGet package dependency declared by `Pams.API.csproj`. It adds .NET extension APIs for working with `DataSet` and `DataTable` data when Pams.API restores and builds its package references.

## Diagram

```mermaid
sequenceDiagram
    participant Developer
    participant Project as Pams.API.csproj
    participant NuGet
    participant Build as dotnet build
    participant API as Pams.API

    Developer->>Project: Run restore or build
    Project->>NuGet: Request System.Data.DataSetExtensions
    NuGet-->>Build: Restore package assemblies
    Build->>API: Compile references
    API-->>Developer: Run with DataSet extension APIs available
```

## Usage

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

const projectFile = "Pams/API/Pams.API/Pams.API.csproj";

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

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

## AI Coding Instructions

- Keep `System.Data.DataSetExtensions` declared through the project file package references.
- Run `dotnet restore` after changing package references before building Pams.API.
- Use the package only from .NET code; TypeScript tooling should invoke the .NET build process rather than import the package.
- Check target framework compatibility before changing or removing this legacy-format dependency.
