Skip to content

TaskQueryProvider

Query provider exposing 6 data-access operation(s) (GetAction, GetCategory, GetPriroity, GetSource, GetTask, GetTasksForUser) against 5 distinct table(s); see sql/index.md for the full ORM operation catalog.

Purpose

  • Provides read/write access to 5 table(s) via NHibernate IQueryable<T>/GetRepository<T>() calls documented in sql/index.md.
  • Exposes 6 public query/command method(s) consumed by higher application layers; see database-tables.md for the underlying schema.

Context

  • Namespace: SAIF.Data.Queries.Tasks
  • Assembly/package: SAIF.Data

Public members

Member Signature Purpose
GetSource TaskSource GetSource(string code) Executes an ORM query (SQL-231) against TASK_SOURCE_CODE.
GetAction TaskAction GetAction(string code) Executes an ORM query (SQL-232) against TASK_ACTION_CODE.
GetPriroity TaskPriority GetPriroity(string code) Executes an ORM query (SQL-233) against TASK_PRIORITY_CODE.
GetCategory TaskCategory GetCategory(string code) Executes an ORM query (SQL-234) against TASK_CATEGORY_CODE.
GetTask Task GetTask(long taskId) Executes an ORM query (SQL-235) against TASK.
GetTasksForUser IEnumerable<Task> GetTasksForUser(string taskUser) Executes an ORM query (SQL-236) against TASK.
TaskQueryProvider(IRepositoryFactory factory, IPolicyQueryProvider policyQueryProvider, IClaimQueryProvider claimQueryProvider, IImageQueryProvider imageQueryProvider) TaskQueryProvider(IRepositoryFactory factory, IPolicyQueryProvider policyQueryProvider, IClaimQueryProvider claimQueryProvider, IImageQueryProvider imageQueryProvider) Initializes a new instance, wiring the repository factory used by this provider's query methods.*

Behavioral notes

  • Query methods build LINQ expressions over IQueryable<T> obtained via Factory.GetRepository<T>() and execute them against the underlying NHibernate session.*

Constraints and usage notes

  • Instances are constructed with an IRepositoryFactory and are expected to be resolved through dependency injection rather than instantiated directly.*

Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Data/SAIF.Data/Queries/Tasks/TaskQueryProvider.cs