Kind: Service
Source: Pams/Logic/Common/Pams.Common.csproj (line 1)
Part of: Pams
NuGet package dependency
System.Data.Entity is a NuGet package dependency declared in Pams/Logic/Common/Pams.Common.csproj. It supplies Entity Framework APIs for code in the Common project that reads and writes data through Entity Framework database contexts.
Diagram
mermaidflowchart TD CommonProject[Pams.Common.csproj] --> EntityPackage[System.Data.Entity] EntityPackage --> EntityFramework[Entity Framework APIs] EntityFramework --> DbContext[Database Context] DbContext --> Database[Database]
Usage
ts// Call an API endpoint backed by code that uses System.Data.Entity.
async function loadRecords() {
const response = await fetch("/api/records");
if (!response.ok) {
throw new Error("Unable to load records");
}
return response.json();
}
const records = await loadRecords();
console.log(records);
AI Coding Instructions
- Keep
System.Data.Entityreferences aligned with the package declaration inPams.Common.csproj. - Use Entity Framework context types and query patterns already present in the Common project.
- Avoid adding JavaScript or TypeScript dependencies to replace this .NET package; it runs in the backend project.
- Check database context lifetime and disposal patterns before adding data-access code.
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.Common—Pams/Logic/Common/Pams.Common.csproj:1
Was this page helpful?