Skip to content

DashboardLinqDataContextDataContext

reference
1 min readUpdated

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

mermaid
graph LR
    DashboardLinqDataContextDataContext --> CurrentJobTypes["Table<CurrentJobType>"]
    CurrentJobTypes --> CurrentJobType

Usage

ts
type 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 CurrentJobTypes through DashboardLinqDataContextDataContext when 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.cs as generated code; place custom behavior in a separate partial class when possible.
  • Confirm CurrentJobType mappings 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:13
  • Widget_BacklogCompanyBranch — Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_BacklogCompanyBranch.cs:13
  • Widget_BacklogPrincipals — Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_BacklogPrincipals.cs:13
  • Widget_BookingVsTargetCompanyBranch — Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_BookingVsTargetCompanyBranch.cs:13
  • Widget_BookingVsTargetPrincipals — Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_BookingVsTargetPrincipals.cs:13
  • Widget_ClientDeliveredOrderSummary — Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_ClientDeliveredOrderSummary.cs:5
  • Widget_ClientLostOrderSummary — Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_ClientLostOrderSummary.cs:5
  • Widget_ClientOfferSummary — Pams/Logic/Pams.Business/Entity/DashBoard/DashboardData/Widget_ClientOfferSummary.cs:9

…and 7 more.

Was this page helpful?

Download as PDF