Kind: Class
Source: Pams/Data/Pams.Data/DashboardLinqDataContext.designer.cs (line 26)
Part of: Pams
DashboardLinqDataContextDataContext is a LINQ to SQL data context for dashboard-related data access. It exposes the CurrentJobTypes table so application code can query and manage CurrentJobType records through the data context.
Diagram
mermaidgraph LR DashboardLinqDataContextDataContext --> CurrentJobTypes["Table<CurrentJobType>"] CurrentJobTypes --> CurrentJobType
Usage
tstype CurrentJobType = {
// Match properties returned by the .NET API.
};
async function getCurrentJobTypes(): Promise<CurrentJobType[]> {
const response = await fetch("/api/dashboard/current-job-types");
if (!response.ok) {
throw new Error("Unable to load current job types.");
}
return response.json();
}
const jobTypes = await getCurrentJobTypes();
console.log(jobTypes);
AI Coding Instructions
- Access
CurrentJobTypesthroughDashboardLinqDataContextDataContextwhen implementing dashboard data queries. - Keep database query logic in the .NET data-access layer; JavaScript and TypeScript clients should call an API endpoint rather than instantiate the data context.
- Treat
DashboardLinqDataContext.designer.csas generated code; place custom behavior in a separate partial class when possible. - Confirm
CurrentJobTypemappings before adding filters, projections, inserts, or updates.
Relationships
- IMPORTS →
Target
Used by
15 references from 15 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.
Imported by (15)
CurrentJobTypes—Pams/Logic/Pams.Business/Entity/DashBoard/CurrentJobTypes.cs:13Widget_BacklogCompanyBranch—Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_BacklogCompanyBranch.cs:13Widget_BacklogPrincipals—Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_BacklogPrincipals.cs:13Widget_BookingVsTargetCompanyBranch—Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_BookingVsTargetCompanyBranch.cs:13Widget_BookingVsTargetPrincipals—Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_BookingVsTargetPrincipals.cs:13Widget_ClientDeliveredOrderSummary—Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_ClientDeliveredOrderSummary.cs:5Widget_ClientLostOrderSummary—Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_ClientLostOrderSummary.cs:5Widget_ClientOfferSummary—Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_ClientOfferSummary.cs:9
…and 7 more.
Was this page helpful?