Skip to content

System.Data

reference
1 min readUpdated

Kind: Service

Source: Pams/Logic/Pams.Business/Pams.Business.csproj (line 1)

Part of: Pams

NuGet package dependency

System.Data is a NuGet package dependency declared in Pams.Business.csproj. The Pams.Business project references it for .NET data-related types and APIs used by business-layer code.

Diagram

mermaid
sequenceDiagram
    participant Business as Pams.Business
    participant Data as System.Data
    participant Store as Data Store

    Business->>Data: Create and manage data objects
    Data->>Store: Read or write data
    Store-->>Data: Return data result
    Data-->>Business: Return data types

Usage

ts
// JavaScript clients do not import the .NET System.Data package directly.
// Call a Pams.Business-backed API endpoint that reads data through System.Data.

const response = await fetch("/api/pams/accounts", {
  headers: {
    Accept: "application/json",
  },
});

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

const accounts = await response.json();
console.log(accounts);

AI Coding Instructions

  • Keep the System.Data package reference in Pams.Business.csproj compatible with the project's target framework.
  • Use System.Data types only within .NET projects; JavaScript and TypeScript clients must access data through application APIs.
  • Check existing Pams.Business data-access patterns before adding new connections, commands, or data readers.
  • Dispose database connections, commands, and readers according to the patterns already used in the project.

Was this page helpful?

Download as PDF