---
title: EbillInvoiceQueryProvider
summary: API reference for EbillInvoiceQueryProvider.
status: draft
owner: SAIF.Core documentation team
last_reviewed: 2026-09-24
library: SAIF.Data
reference_type: package
---

# EbillInvoiceQueryProvider

Query provider exposing 3 data-access operation(s) (`GetInvoice`, `GetInvoiceBills`, `GetInvoiceError`) against 3 distinct table(s); see [sql/index.md](../../sql/index.md) for the full ORM operation catalog.

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

## Context
- Namespace: `SAIF.Data.Queries.Claims.Ebilling`
- Assembly/package: `SAIF.Data`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| GetInvoice | `EbillInvoice GetInvoice(DateTime invoiceMonth)` | Executes an ORM query ([SQL-107](../../sql/SQL-107-ebill-invoice-query-provider-get-invoice.md)) against [EBILL_INVOICE](../../database-tables.md#ebill_invoice). |
| GetInvoiceBills | `IEnumerable<EbillInvoiceBill> GetInvoiceBills(EbillInvoice invoice)` | Executes an ORM query ([SQL-108](../../sql/SQL-108-ebill-invoice-query-provider-get-invoice-bills.md)) against [EBILL_INVOICE_BILL](../../database-tables.md#ebill_invoice_bill), [EBILL_INVOICE](../../database-tables.md#ebill_invoice). |
| GetInvoiceError | `IEnumerable<EbillInvoiceError> GetInvoiceError(EbillInvoice invoice)` | Executes an ORM query ([SQL-109](../../sql/SQL-109-ebill-invoice-query-provider-get-invoice-error.md)) against [EBILL_INVOICE_ERROR](../../database-tables.md#ebill_invoice_error), [EBILL_INVOICE](../../database-tables.md#ebill_invoice). |
| EbillInvoiceQueryProvider(IRepositoryFactory factory) | `EbillInvoiceQueryProvider(IRepositoryFactory factory)` | 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/Claims/Ebilling/EbillInvoiceQueryProvider.cs`
